I want to get a Gpu's name on windows operation system with C++

微笑、不失礼 提交于 2019-12-13 02:36:24

问题


I want to get a Gpu's name,for example AMD Radeon HD4830, I want to get information like "ATI Radeon HD4830".But, I read register and get the information like "ATI Radeon HD 4800 Series".And I Used D3D or OPCL's interface get the information also like "ATI Radeon HD 4800 Series".How can I get a Gpu's name correctly?


回答1:


I don't remember the exact function you need to call, but you need to use the SetupDiXxx functions.

Warning: it's a little painful.




回答2:


You can try this with c++amp, if you are in windows:

concurrency::accelerator a;
wcout<<a.description; // a.description will contain the details (name if not a emulated accelerator)


来源:https://stackoverflow.com/questions/21248465/i-want-to-get-a-gpus-name-on-windows-operation-system-with-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!