QUDA  v1.1.0
A library for QCD on GPUs
Functions
numa_affinity.cpp File Reference
#include <numa_affinity.h>
#include <quda_internal.h>

Go to the source code of this file.

Functions

int setNumaAffinityNVML (int devid)
 

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.