cuda.bindings.nvml.device_get_compute_mode#

cuda.bindings.nvml.device_get_compute_mode(intptr_t device) int#

Retrieves the current compute mode for the device or MIG device.

For all products. See nvmlComputeMode_t for details on allowed compute modes.

Parameters:

device (intptr_t) – The identifier of the target device handle or MIG device handle.

Returns:

Reference in which to return the current compute mode.

Return type:

int

Note

If MIG is enabled on a GPU, device must be MIG device handle.

See also

nvmlDeviceGetComputeMode