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 :func:`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.

:param device: The identifier of the target device.
:type device: intptr_t

.. seealso:: `nvmlDeviceSetCpuAffinity`