QUDA  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions
numa_affinity.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int setNumaAffinityNVML (int deviceid)
 

Function Documentation

◆ setNumaAffinityNVML()

int setNumaAffinityNVML ( int  deviceid)

sets the cpu affinity of the calling process to the affinity mask reported by nvidia-smi topo Note that older driver versions might pin all mpi ranks to the same single conre instead of a range

Parameters
deviceidgpu to determine affinity for
Returns
0 if numa affinity was set

Definition at line 15 of file numa_affinity.cpp.

References device, printfQuda, and warningQuda.

Referenced by initQudaDevice().

Here is the caller graph for this function: