我想得到一个Gpu的名字在Windows操作系统与C + + [英] I want to get a Gpu's name on windows operation system with C++

查看:162
本文介绍了我想得到一个Gpu的名字在Windows操作系统与C + +的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想得到一个Gpu的名字,例如AMD Radeon HD4830,我想获得像ATI Radeon HD4830的信息。但是,我读取注册表,并获得像ATI Radeon HD 4800系列的信息。我使用D3D或OPCL的界面得到的信息也像ATI Radeon HD 4800系列一样。如何正确得到Gpu的名字?

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?

推荐答案

如果您在Windows中,可以使用 c ++ amp 试试:

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)

这篇关于我想得到一个Gpu的名字在Windows操作系统与C + +的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆