9 lines
135 B
Python
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)
|