Using OpenCL with OpenCV on imx6QuadPlus Sabre Board for Smart Devices

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using OpenCL with OpenCV on imx6QuadPlus Sabre Board for Smart Devices

2,381件の閲覧回数
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,854件の閲覧回数
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,854件の閲覧回数
1019599657
Contributor III

if imx8  ,can we use opencv with opencl?

0 件の賞賛
返信

1,854件の閲覧回数
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 件の賞賛
返信