cuda.bindings.nvml.device_get_mig_mode#

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

Get MIG mode for the device.

For Ampere ™️ or newer fully supported devices. Changing MIG modes may require device unbind or reset. The “pending” MIG mode refers to the target mode following the next activation trigger.

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