k80-linux-cooling/Demos/gpu_temp.py
2022-10-22 16:40:51 -05:00

9 lines
135 B
Python

import GPUtil
import time
gpus = GPUtil.getGPUs()
gpu = gpus[0]
while True:
print(str(gpu.temperature) + " C")
time.sleep(3)