【发布时间】:2021-03-29 20:55:11
【问题描述】:
所以在Linux中有一个命令叫做
nvidia-settings -q=[gpu:0]/GPUCoreTemp
这让我看到我的 GPU 的温度为 41°C。
Attribute 'GPUCoreTemp' (devnux:0[gpu:0]): 41.
'GPUCoreTemp' is an integer attribute.
'GPUCoreTemp' is a read-only attribute.
'GPUCoreTemp' can use the following target types: X Screen, GPU.
是否有可能以类似的整数形式直接获取 C 中的温度?否则,当我想持续检查温度时,我将不得不读取输出并对其进行修整。
【问题讨论】:
-
您可能可以从
/proc的某个文件中读取它。还是您要求 Windows? -
我要Linux