haveOpenCL return false

asked 2015-12-24 05:36:50 -0600

Eduardo.Martins gravatar image

Hi. I am trying to use openCV 3.0 with OpenCL and it's not working. The "haveOpenCL" function aways return false.

I am using Ubuntu 14.04. The /etc/OpenCL/vendor have "amdocl32.icd amdocl64".icd with "libamdocl32.so" and "libamdocl64.so". In the opencv cmake file, the OpenCV appears as:

--   OpenCV modules:
--     To be built:                 hal core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres ts features2d calib3d stitching videostab
--     Disabled:                    world
--     Disabled by dependency:      -
--     Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 viz
--   OpenCL:
--     Version:                     dynamic
--     Include path:                /home/eduardo/Install-OpenCV/Ubuntu/OpenCV/opencv-3.0.0/3rdparty/include/opencl/1.2
--     Use AMDFFT:                  NO
--     Use AMDBLAS:                 NO
--     Use OpenCL:                  YES

Even whem I use the function "setUseOpenCL(true)", it's not setted because the function needs "if( haveOpenCL() )" to run.

I test a OpenCL Hello World from this link (https://www.fixstars.com/en/opencl/bo...) and I get the hello world message on the terminal.

Is possible to run OpenCV with OpenCL in my computer?

edit retag flag offensive close merge delete

Comments

Thanks to 'LBerger". I don't know why his comment is not showing.

My problem was OpenCV try open "libOpenCL.so" and I have "libOpenCL.so.1". Then I create a link to the "libOpenCL.so.1" called "libOpenCL.so" using "ln -s /usr/lib/libOpenCL.so.1 /usr/lib/libOpenCL.so".

Now it works.

Eduardo.Martins gravatar imageEduardo.Martins ( 2015-12-24 07:13:25 -0600 )edit