k80-linux-cooling/Demos/Python/gpu_temp_demo.py

9 lines
142 B
Python
Raw Normal View History

2022-09-30 23:02:31 -05:00
import GPUtil
import time
gpus = GPUtil.getGPUs()
while True:
2022-10-22 18:09:47 -05:00
print(str(max(gpu.temperature for gpu in gpus)) + " C")
2022-09-30 23:02:31 -05:00
time.sleep(3)