【问题标题】:Accessing GPU temperature in Python on Windows在 Windows 上使用 Python 访问 GPU 温度
【发布时间】:2017-10-27 02:01:14
【问题描述】:

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

由于我找不到任何使用 Python 访问 GPU 温度的方法,所以我想问一下是否有任何已知的方法可以获取这些值。

提前致谢。

【问题讨论】:

标签: python windows gpu hardware monitor


【解决方案1】:

Glances

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)]}

【讨论】:

  • sensors_temperatures 方法目前仅在 linux 上可用!
猜你喜欢
  • 2020-10-18
  • 2021-03-07
  • 2018-05-15
  • 2011-09-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-04-07
相关资源
最近更新 更多