问题:在Ubuntu20.04.05LTS下, 运行print(core.available_devices),找不到i7-1165G7的集成显卡
解决方式:升级intel-opencl-icd ≥ 21.42.021270
查看intel-opencl-icd版本具体步骤:
第一步,创建一个临时文件夹,下载intel-opencl-icd 21.42.021270相关库
mkdir neo
cd neo
wget https://github.com/intel/compute-runtime/releases/download/21.42.21270/intel-gmmlib_21.2.1_amd64.deb
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.8744/intel-igc-core_1.0.8744_amd64.deb
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.8744/intel-igc-opencl_1.0.8744_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/21.42.21270/intel-opencl-icd_21.42.021270_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/21.42.21270/intel-level-zero-gpu_1.2.021270_amd64.deb
第二步, sha256 sums 校验
sha256 sums 校验wget https://github.com/intel/compute-runtime/releases/download/21.42.21270/ww42.sum
sha256sum -c ww42.sum
第三步,安装intel-opencl-icd 21.42.021270相关计算库
sudo dpkg -i *.deb
第四步,重启系统,然后运行print(core.available_devices),可以找到GPU了。
找到GPU了现在您可以在Ubuntu20.04 LTS下使用OpenVINO在11代CPU的集成显卡上做AI推理计算了。
网友评论