cuda.bindings.nvml.device_set_cpu_affinity#

cuda.bindings.nvml.device_set_cpu_affinity(intptr_t device)#

Sets the ideal affinity for the calling thread and device using the guidelines given in device_get_cpu_affinity(). Note, this is a change as of version 8.0. Older versions set the affinity for a calling process and all children. Currently supports up to 1024 processors.

Parameters:

device (intptr_t) – The identifier of the target device.

See also

nvmlDeviceSetCpuAffinity