cuda.bindings.nvml.device_get_power_usage#
- cuda.bindings.nvml.device_get_power_usage(intptr_t device) unsigned int#
Retrieves power usage for this GPU in milliwatts and its associated circuitry (e.g. memory).
For Fermi ™️ or newer fully supported devices. On Fermi and Kepler GPUs the reading is accurate to within +/- 5% of current power draw. On Ampere (except GA100) or newer GPUs, the API returns power averaged over 1 sec interval. On GA100 and older architectures, instantaneous power is returned. See
NVML_FI_DEV_POWER_AVERAGEandNVML_FI_DEV_POWER_INSTANTto query specific power values. It is only available if power management mode is supported. See nvmlDeviceGetPowerManagementMode.- Parameters:
device (intptr_t) – The identifier of the target device.
- Returns:
- Reference in which to return the power usage
information.
- Return type:
unsigned int
See also
nvmlDeviceGetPowerUsage