南昌做网站建设公司,抖音广告推广怎么做,怎么建网站挣钱,人事外包1. 问题描述
使用OpenVINO进行深度学习推理时#xff0c;通常会借助GPU以提升计算速度。然而#xff0c;有时候运行程序时候会出现如下错误#xff1a;
kernel:8153:2: error: expected identifier or (unroll_for (int i 0; i TILE_SIZE; i) {^
kernel…1. 问题描述
使用OpenVINO进行深度学习推理时通常会借助GPU以提升计算速度。然而有时候运行程序时候会出现如下错误
kernel:8153:2: error: expected identifier or (unroll_for (int i 0; i TILE_SIZE; i) {^
kernel:17:56: note: expanded from macro unroll_for
....
kernel:8242:2: error: expected identifier or (unroll_for (int i 0; i X_REMAINDER_SIZE; i) {^
kernel:17:56: note: expanded from macro unroll_for
....
terminate called after throwing an instance of InferenceEngine::GeneralErrorwhat(): [ GENERAL_ERROR ] Check false failed at src/plugins/intel_gpu/src/plugin/program_builder.cpp:179:
[GPU] ProgramBuilder build failed!
Program build failed(0_part_11): You may enable OCL source dump to see the error log。我的系统版本为Ubuntu 20.04内核版本5.15.0-101-generic。
2. 解决方法
https://github.com/openvinotoolkit/openvino/issues/18452给出了解决问题的方法是安装Intel核芯显卡的驱动程序。对于我的系统与内核版本可以安装23.09.25812.14版本的驱动。
下面是具体的步骤参考https://github.com/intel/compute-runtime/releases?page2
步骤一创建临时目录并下载相关软件包
在终端中执行以下命令
mkdir neo
cd neo
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13463.18/intel-igc-core_1.0.13463.18_amd64.deb
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.13463.18/intel-igc-opencl_1.0.13463.18_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/23.09.25812.14/intel-level-zero-gpu-dbgsym_1.3.25812.14_amd64.ddeb
wget https://github.com/intel/compute-runtime/releases/download/23.09.25812.14/intel-level-zero-gpu_1.3.25812.14_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/23.09.25812.14/intel-opencl-icd-dbgsym_23.09.25812.14_amd64.ddeb
wget https://github.com/intel/compute-runtime/releases/download/23.09.25812.14/intel-opencl-icd_23.09.25812.14_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/23.09.25812.14/libigdgmm12_22.3.0_amd64.deb步骤二验证软件包的完整性
下载相应的 *.sum 文件并执行以下命令进行验证
wget https://github.com/intel/compute-runtime/releases/download/23.09.25812.14/ww09.sum
sha256sum -c ww09.sum确保输出中所有软件包的校验和都匹配。
步骤三安装软件包
sudo安装软件包
sudo dpkg -i *.deb可以通过
clinfo -l查看是否能够打印出Intel UHD Graphics。若有则说明iGPU成功被驱动。
再次运行程序已经可以正常使用GPU进行神经网络推理。