k80-linux-cooling/Demos/gpu_temp_demo.py
2022-10-22 18:09:47 -05:00

8 lines
142 B
Python

import GPUtil
import time
gpus = GPUtil.getGPUs()
while True:
print(str(max(gpu.temperature for gpu in gpus)) + " C")
time.sleep(3)