cuda.bindings.nvml.device_set_memory_limits_v1#
- cuda.bindings.nvml.device_set_memory_limits_v1(intptr_t device, limits)#
Set the memory limits of the device for the cgroup partition.
This method will set the memory limits of the device for the specified cgroup partition. The limits will indicate the amount of memory that can be allocated for the device for use of an application in that cgroup. For all products. For Linux only. Requires root/admin permissions.
- Parameters:
device (intptr_t) – The identifier of the target device.
limits (intptr_t) – A pointer to
nvmlSetMemoryLimits_v1_twhere the limits can be set.
Note
MIG handles are not supported.
See also
nvmlDeviceSetMemoryLimits_v1