AnsweredAssumed Answered

Using OpenCL with OpenCV on imx6QuadPlus Sabre Board for Smart Devices

Question asked by erman sargan on Sep 19, 2017
Latest reply on Apr 1, 2019 by Joan Xie

Hi , When I run the test application 'clinfo' under '/opt/viv_samples/cl11/UnitTest/', it works without any error.  I see OpenCL is working on my device. Then I have crosscompiled OpenCV 3.2 libraries and it also works fine on imx6qp. The problem is using OpenCL under OpenCV. When I run the code below, I get 'OpenCL is not available'.  Why cant I use OpenCV's OpenCL?  Andre Silveira said we can use it here: how to use the ocl in opencv with imx6q? 

Please guide me.

Here the code I try.


if (!ocl::haveOpenCL())
std::cout << "OpenCL is not available..." << std::endl;