摘要: 一个简单的获取Nvidia显卡信息的程序#includeint main(){ cudaDeviceProp prop; int count; cudaGetDeviceCount(&count);//获取设备数目,比如GTX295 有两个GPU(也就是双核) count为2 for(int i=0;i<count;i++) { cudaGetDeviceProperties(&prop,i);//将第i个GPU数据放到prop中 std::cout<<"显卡名称:"<<prop.name<<std::endl; s 阅读全文
posted @ 2014-03-07 19:33 枫月寒 阅读(2314) 评论(2) 推荐(0) 编辑