加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c – 获取GPU温度

发布时间:2020-12-16 09:34:27 所属栏目:百科 来源:网络整理
导读:我真的很困惑.我想创建一个应用程序,在我的显卡的不同温度下执行不同的事件,这是AMD的. 我想制作这样一个应用程序的原因是因为,对于GPU我还没有找到一个,第二个是确保我永远不会因为达到巨大的温度而炒我的卡. 但是我不知道人们(没有连接到amd / intel / nvi
我真的很困惑.我想创建一个应用程序,在我的显卡的不同温度下执行不同的事件,这是AMD的.

我想制作这样一个应用程序的原因是因为,对于GPU我还没有找到一个,第二个是确保我永远不会因为达到巨大的温度而炒我的卡.

但是我不知道人们(没有连接到amd / intel / nvidia)如何编写应用程序来监控任何类型的温度.

那怎么回事?一些我不知道的API或什么?

解决方法

经过一段谷歌搜索后,我发现了这个:

I think this is really vendor specific,it will probably involve interfacing directly with the motherboard or video driver and knowing which IOCTL represents the code for requesting the temperature. I reverse engineered a motherboard driver once for this purpose. It’s not as hard as it sounds,download a manufacturer motherboard/BIOS utility and try to hook the function that gets called when that app needs to display the temperature to the user. Then watch for a call to DeviceIoControl() in Windows,or ioctl() in linux and see what the inputs / outputs are.

这可能是你最好的选择.我在这里找到了这个信息:
http://www.gamedev.net/topic/557599-get-gpucpu-temperature/

编辑:
还发现了这个:
http://msdn.microsoft.com/en-us/library/aa389762%28v=VS.85%29.aspx
http://msdn.microsoft.com/en-us/library/aa394493%28VS.85%29.aspx

希望能帮助到你.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读