天天看点

'clinfo'找不到Intel GPU(Intel HD graphics)

问题描述

ubuntu 16.04下,输入clinfo查看OpenCL设备,只能找到OpenCL CPU。但是Intel的CPU一般都会集成一张核心显卡,比如说Intel HD graphics 530,所以应该是还会有一张OpenCL显卡设备的。

解决方法

  1. 首先你要确保你安装了intel的OpenCL Driver SDK,没有安装的请移步这里下载安装。
  2. 完成了上述步骤后,在命令行中输入下列命令:
    sudo apt purge beignet
               
  3. 然后再重新安装beignet:
    sudo apt-get install beignet
               
  4. 再在命令行中敲clinfo命令,可以发现找到了该显卡设备:
    Platform Name                                   Intel Gen OCL Driver
    Number of devices                                 
      Device Name                                     Intel(R) HD Graphics Skylake Desktop GT2
      Device Vendor                                   Intel
      Device Vendor ID                                
      Device Version                                  OpenCL  beignet 
      Driver Version                                  
      Device OpenCL C Version                         OpenCL C  beignet 
      Device Type                                     GPU
      Device Profile                                  FULL_PROFILE
      Max compute units                               
    ...
               
    转载请注明出处:http://blog.csdn.net/greenlight_74110/article/details/78461464

继续阅读