We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dbcb66 commit 406c889Copy full SHA for 406c889
kernel_tuner/observers/nvml.py
@@ -298,7 +298,8 @@ def auto_boost(self, setting):
298
299
def pwr_usage(self):
300
"""Return current power usage in milliwatts."""
301
- return pynvml.nvmlDeviceGetPowerUsage(self.dev)
+ NVML_FI_DEV_POWER_INSTANT = 186
302
+ return pynvml.nvmlDeviceGetFieldValues(self.dev, [NVML_FI_DEV_POWER_INSTANT])[0].value.uiVal
303
304
def gr_voltage(self):
305
"""Return current graphics voltage in millivolts."""
0 commit comments