Using OpenCL with OpenCV on imx6QuadPlus Sabre Board for Smart Devices

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using OpenCL with OpenCV on imx6QuadPlus Sabre Board for Smart Devices

1,390 Views
ermansargan
Contributor I

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?  andresilveira‌ said we can use it here: https://community.nxp.com/thread/391395 

Please guide me.

Here the code I try.

ocl::setUseOpenCL(true);

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

0 Kudos
3 Replies

863 Views
joanxie
NXP TechSupport
NXP TechSupport

I got information from Andre is:

"OpenCV is based on CUDA and OpenCL full profile. Our OpenCL Embedded profile follows OCL embedded standards and our limitations are not related to syntax, they are related to kernel size, CL atomic support, image support, GL interoperation support. Unfortunately we don´t have such documentation "

0 Kudos

863 Views
1019599657
Contributor III

if imx8  ,can we use opencv with opencl?

0 Kudos

863 Views
joanxie
NXP TechSupport
NXP TechSupport

refer to the latest yocto bsp:

Supports OpenCL1.2 on GC7000SXVX, GC7000L and GC2000+ on i.MX
6QuadPlus, 8QuadMax, 8QuadXPlus and 8M Quad.

0 Kudos