cuda.bindings.nvml.device_get_memory_limits_v1#

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

Get the memory limits of the device for the cgroup partition.

This method will get the current memory limits of the device for the specified cgroup partition, as well as the current memory used against the limits. For all products. For Linux only.

Parameters:

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

Returns:

A pointer to

nvmlGetMemoryLimits_v1_t.

Return type:

nvmlGetMemoryLimits_v1_t

Note

MIG handles are not supported.

See also

nvmlDeviceGetMemoryLimits_v1