Using OpenCL with OpenCV on imx6QuadPlus Sabre Board for Smart Devices

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using OpenCL with OpenCV on imx6QuadPlus Sabre Board for Smart Devices

1,680 次查看
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 项奖励
回复
3 回复数

1,153 次查看
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 项奖励
回复

1,153 次查看
1019599657
Contributor III

if imx8  ,can we use opencv with opencl?

0 项奖励
回复

1,153 次查看
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 项奖励
回复