k80-linux-cooling/Demos/Python/gpu_temp_demo.py
2022-10-23 12:49:59 -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)