Skip to content

Small tool to find the nearest CPU/Core to a given CUDA device

License

Notifications You must be signed in to change notification settings

HighPerLab/nearest-cpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find Nearest GPU (NVIDIA) Device

Little program that makes use of HWLOC bindings into CUDA-driver/-runtime to find the nearest CPU (NUMA) to the GPU device(s).

Can be useful for configuring systems that bind to CPUs/Cores using some index value.

Compile

Requires CUDA 10+ and HWLOC v2, uses CMake to generate the build system:

$ mkdir build && cd build
$ cmake ..
$ make
$ ./nearest-gpu

Where Used

SLURM

Use to set the gres.conf for each GPU device, example of what this looks like:

TODO

About

Small tool to find the nearest CPU/Core to a given CUDA device

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published