cuda.bindings.nvml.device_get_compute_instance_id#

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

Get compute instance ID for the given MIG device handle.

Compute instance IDs are unique per GPU instance and remain valid until the compute instance is destroyed. For Ampere ™️ or newer fully supported devices. Supported on Linux only.

Parameters:

device (intptr_t) – Target MIG device handle.

Returns:

Compute instance ID.

Return type:

unsigned int

See also

nvmlDeviceGetComputeInstanceId