cuda.bindings.nvml.device_is_mig_device_handle#

cuda.bindings.nvml.device_is_mig_device_handle(intptr_t device) unsigned int#

Test if the given handle refers to a MIG device.

A MIG device handle is an NVML abstraction which maps to a MIG compute instance. These overloaded references can be used (with some restrictions) interchangeably with a GPU device handle to execute queries at a per-compute instance granularity. For Ampere ™️ or newer fully supported devices. Supported on Linux only.

Parameters:

device (intptr_t) – NVML handle to test.

Returns:

True when handle refers to a MIG device.

Return type:

unsigned int

See also

nvmlDeviceIsMigDeviceHandle