cuda.bindings.nvml.device_set_accounting_mode#

cuda.bindings.nvml.device_set_accounting_mode(intptr_t device, int mode)#

Enables or disables per process accounting.

For Kepler ™️ or newer fully supported devices. Requires root/admin permissions. See nvmlDeviceGetAccountingMode See nvmlDeviceGetAccountingStats See nvmlDeviceClearAccountingPids.

Parameters:
  • device (intptr_t) – The identifier of the target device.

  • mode (EnableState) – The target accounting mode.

Note

This setting is not persistent and will default to disabled after driver unloads. Enable persistence mode to be sure the setting doesn’t switch off to disabled.

Note

Enabling accounting mode has no negative impact on the GPU performance.

Note

Disabling accounting clears all accounting pids information.

Note

On MIG-enabled GPUs, accounting mode would be set to DISABLED and changing it is not supported.

See also

nvmlDeviceSetAccountingMode