繁体   English   中英

在Windows上访问Python中的GPU温度

[英]Accessing GPU temperature in Python on Windows

我正在尝试为加密货币采矿设备设置一种“监视器”,并希望观察我的钻机的温度。

由于我找不到用Python访问GPU温度的任何方法,我想询问是否有任何已知的方法来获取这些值。

提前致谢。

眼神

或者psutil

Python 3.5.3 (default, Jan 19 2017, 14:11:04) 
[GCC 6.3.0 20170118] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.sensors_temperatures()
{'pch_skylake': [shwtemp(label='', current=43.0, high=None, critical=None)], 'coretemp': [shwtemp(label='Package id 0', current=29.0, high=84.0, critical=100.0), shwtemp(label='Core 0', current=26.0, high=84.0, critical=100.0), shwtemp(label='Core 1', current=26.0, high=84.0, critical=100.0), shwtemp(label='Core 2', current=25.0, high=84.0, critical=100.0), shwtemp(label='Core 3', current=24.0, high=84.0, critical=100.0)], 'acpitz': [shwtemp(label='', current=27.8, high=119.0, critical=119.0), shwtemp(label='', current=29.8, high=119.0, critical=119.0)]}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM