cuda.bindings.nvml.device_get_mig_mode#

cuda.bindings.nvml.device_get_mig_mode(intptr_t device) tuple#

Get MIG mode for the device.

Parameters:

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

Returns:

  • unsigned int: Returns the current mode, NVML_DEVICE_MIG_DISABLE or NVML_DEVICE_MIG_ENABLE.

  • unsigned int: Returns the pending mode, NVML_DEVICE_MIG_DISABLE or NVML_DEVICE_MIG_ENABLE.

Return type:

A 2-tuple containing

See also

nvmlDeviceGetMigMode