cuda.bindings.nvml.device_get_cpu_affinity_within_scope#
- cuda.bindings.nvml.device_get_cpu_affinity_within_scope(
- intptr_t device,
- unsigned int cpu_set_size,
- unsigned int scope,
Retrieves an array of unsigned ints (sized to cpu_set_size) of bitmasks with the ideal CPU affinity within node or socket for the device. For example, if processors 0, 1, 32, and 33 are ideal for the device and cpu_set_size == 2, result[0] = 0x3, result[1] = 0x3.
- Parameters:
device (intptr_t) – The identifier of the target device.
cpu_set_size (unsigned int) – The size of the cpuSet array that is safe to access.
scope (unsigned int) – Array reference in which to return a bitmask of CPUs, 64 CPUs per unsigned long on 64-bit machines, 32 on 32-bit machines.
See also
nvmlDeviceGetCpuAffinityWithinScope