Skip to content

Commit d550857

Browse files
authored
Update to cuda-core 1.0.1, fix temperature API (#40)
1 parent 94705a4 commit d550857

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎nsight/thermovision.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,7 @@ def _get_gpu_temp(self) -> int:
258258
Returns:
259259
GPU temperature in degrees Celsius
260260
"""
261-
return int(
262-
self.device.temperature.sensor(system.TemperatureSensors.TEMPERATURE_GPU)
263-
)
261+
return int(self.device.temperature.get_sensor())
264262

265263
def _is_temp_retrieval_supported(self) -> bool:
266264
"""Check if GPU supports temperature retrieval.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies = [
2222
"matplotlib",
2323
"ncu-report>=2026.2.0",
2424
"deepdiff",
25-
"cuda-core>=0.7.0",
25+
"cuda-core>=1.0.1",
2626
"cuda-bindings>=12.9.6,!=13.0.*,!=13.1.*",
2727
]
2828

0 commit comments

Comments
 (0)