当前位置:
首页 >
OpenVINO安装之安装openCL
发布时间:2024/4/18
56
豆豆
生活随笔
收集整理的这篇文章主要介绍了
OpenVINO安装之安装openCL
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
参考:
安装OpenVINO过程中的提示:
- 安装OpenCL框架
- 使用Intel模型加速版本的OpenCV
1. 安装OpenCL
关于OpenCL的介绍:https://zh.wikipedia.org/wiki/OpenCL
OpenCL(Open Computing Language,开放计算语言)是一个为异构平台编写程序的框架,此异构平台可由CPU、GPU、DSP、FPGA或其他类型的处理器与硬件加速器所组成。OpenCL由一门用于编写kernels(在OpenCL设备上运行的函数)的语言(基于C99)和一组用于定义并控制平台的API组成。OpenCL提供了基于任务分割和数据分割的并行计算机制。
OpenCL类似于另外两个开放的工业标准OpenGL和OpenAL,这两个标准分别用于三维图形和计算机音频方面。OpenCL扩展了GPU图形生成之外的能力。OpenCL由非盈利性技术组织Khronos Group掌管。
安装步骤
#进入OpenVINO安装文件夹 cd /opt/intel/openvino/install_dependencies/ #获取用户管理员权限 sudo -E su #以root用户身份命令安装 ./install_NEO_OCL_driver.sh运行./install_NEO_OCL_driver.sh时,出现报错:ERROR: unable to remove intel-igc-core (由于之前安装过另一个版本的OpenVINO,保险起见先按照提示走。)
dpkg: error processing package intel-igc-core (--purge):dependency problems - not removing Errors were encountered while processing:intel-igc-core ERROR: unable to remove intel-igc-coreplease resolve it manually and try to launch the script again.解决方法:sudo apt purge intel-igc-opencl
再次运行install_NEO_OCL_driver.sh脚本。
安装好OpenCL后,出现以下提示,可自行执行。
Next steps: Add OpenCL users to the video group: 'sudo usermod -a -G video USERNAME'e.g. if the user running OpenCL host applications is foo, run: sudo usermod -a -G video fooCurrent user has been already added to the video groupIf you use 8th Generation Intel® Core™ processor, you will need to add:i915.alpha_support=1to the 4.14 kernel command line, in order to enable OpenCL functionality for this platform.总结
以上是生活随笔为你收集整理的OpenVINO安装之安装openCL的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: [Java] Hashmap分析
- 下一篇: 自己实现了一个C语言例程,加深对宏、大小