首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CPU不作为使用Windows的设备列表

CPU不作为使用Windows的设备列表
EN

Stack Overflow用户
提问于 2015-04-21 01:11:17
回答 1查看 81关注 0票数 1

我打算对CPU和GPU之间的区别进行基准测试。问题是,我只能撤回我的GPU,我的CPU没有显示

该程序在OSX上产生正确的输出。在这里,CPU和GPU被列出:

代码语言:javascript
复制
public static void displayInfo() {

    for (int platformIndex = 0; platformIndex < CLPlatform.getPlatforms().size(); platformIndex++) {
        CLPlatform platform = CLPlatform.getPlatforms().get(platformIndex);
        
        System.out.println("Platform #" + platformIndex + ":" + platform.getInfoString(CL_PLATFORM_NAME));

        List<CLDevice> devices = platform.getDevices(CL_DEVICE_TYPE_ALL);
        for (int deviceIndex = 0; deviceIndex < devices.size(); deviceIndex++) {
            CLDevice device = devices.get(deviceIndex);
            System.out.printf(Locale.ENGLISH, "Device #%d(%s):%s\n",
                    deviceIndex,
                    UtilCL.getDeviceType(device.getInfoInt(CL_DEVICE_TYPE)),
                    device.getInfoString(CL_DEVICE_NAME));
        }
    }
}

我的产出:

平台#0:NVIDIA CUDA 装置#0(GPU):GeForce GTX 560 Ti 设备#1(GPU):GeForce GTX 560 Ti

我的电脑:

  • 英特尔i5-2500 K
  • Windows 8.1 pro (x64)
  • 2x GeForce GTX 560 Ti

我使用的是lwjgl版本2.8.4

为什么我不能收回我的CPU?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-04-21 12:55:11

(回复评论)

OS在某种程度上是独一无二的,因为它带有预先安装的OpenCL CPU驱动程序,因此OpenCL可以“开箱即用”。在Windows和Linux上,您需要为您的CPU安装一个OpenCL运行时/驱动程序。对于Intel CPU,您可以在这里找到它们:

https://software.intel.com/en-us/articles/opencl-drivers

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29761149

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档