OpenCV: Failed to load OpenCL runtime

≡放荡痞女 提交于 2019-12-24 17:31:40

问题


I am running a program in which I got the error on the title of my question. I have found an answer here that suggests to download OpenCV from github, then compile with ENABLE_OPENCL=OFF (using CMake) and use the built libs against the application.

Or may be is there a way to set this flag in the program itself without modifying anything in OpenCV ?

I wonder if it is possible to do that without having to remove and install again OpenCV-3.0 ?


回答1:


I resolved the problem by running:

sudo apt-get install ocl-icd-opencl-dev



来源:https://stackoverflow.com/questions/29342179/opencv-failed-to-load-opencl-runtime

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!