finish nvml

This commit is contained in:
Vladimir Mandic
2023-10-02 17:25:57 -04:00
parent 39933a0e28
commit f3c6bfbe7f
3 changed files with 80 additions and 2 deletions
+2 -2
View File
@@ -76,8 +76,8 @@ def get_nvml():
'memory': [nv.nvmlDeviceGetClockInfo(dev, 2), nv.nvmlDeviceGetMaxClockInfo(dev, 2)],
},
'load': {
'gpu': nv.nvmlDeviceGetUtilizationRates(dev).gpu,
'memory': nv.nvmlDeviceGetUtilizationRates(dev).memory,
'gpu': round(nv.nvmlDeviceGetUtilizationRates(dev).gpu),
'memory': round(nv.nvmlDeviceGetUtilizationRates(dev).memory),
'temp': nv.nvmlDeviceGetTemperature(dev, 0),
'fan': nv.nvmlDeviceGetFanSpeed(dev),
},