There was an error while loading. Please reload this page.
1 parent 9d2fa7d commit ff32fb1Copy full SHA for ff32fb1
1 file changed
nsight/thermovision.py
@@ -245,7 +245,7 @@ def _get_gpu_tlimit(self) -> int | None:
245
Thermal headroom in degrees Celsius, or None if not supported
246
"""
247
try:
248
- self.device.temperature.margin
+ return self.device.temperature.margin
249
except system.NotSupportedError as e:
250
print("Error: GPU does not support temperature limit retrieval:", e)
251
return None
@@ -258,7 +258,7 @@ def _get_gpu_temp(self) -> int:
258
Returns:
259
GPU temperature in degrees Celsius
260
261
- return self.device.temperature.sensor(system.TemperatureSensors.TEMPERATURE_GPU)
+ return int(self.device.temperature.sensor(system.TemperatureSensors.TEMPERATURE_GPU))
262
263
def _is_temp_retrieval_supported(self) -> bool:
264
"""Check if GPU supports temperature retrieval.
0 commit comments