Ask Your Question
1

OpenCV ----> Open CL Embedded Profile

asked 2013-12-06 02:05:31 -0600

Roger H gravatar image

updated 2014-01-21 03:31:15 -0600

Hello, has anybody tested OpenCV with the Embedded Profile of OpenCL yet?

Or does anybody know, why it should not be possible to use OpenCV with OpenCL on a Embedded System?

I did a short test with OpenCV 2.4.7.1. I use an embedded device with Android 4.2.2 with OpenCL support. Firstly OpenCV Manager and OpenCV binary pack were installed. Then an app was built with added OpenCL modules in the .mk file. After this step I tried the following in my main:

try
{
      cv::ocl::Context::getContext()->getDeviceInfo().deviceName;
      LOGI("Device opened\n");      
}
catch(...)
{
      LOGI("Error in open opencl\n");
}

And got with adb logcat the following output:

E/cv::error()( 6378): OpenCV Error: Unknown error code -6 (OpenCL function is not available: [clGetPlatformIDs]) in void* opencl_check_fn(int), file /home/reports/ci/slave_desktop/50-SDK/opencv/modules/ocl/src/cl_runtime/cl_runtime.cpp, line 83
E/cv::error()( 6378): OpenCV Error: Unknown error code -221 (OpenCL not available) in static cv::ocl::Context* cv::ocl::Context::getContext(), file /home/reports/ci/slave_desktop/50-SDK/opencv/modules/ocl/src/cl_context.cpp, line 544

Of course OpenCL libs are available on the device!

Does anybody know why OpenCV should not support OpenCL EP (Embedded Profile) or why my small example should not work?

Regards Roger

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
3

answered 2014-01-21 02:48:02 -0600

peterju gravatar image

In the Developer Notes to the OpenCL Module Introduction it is stated that the OpenCL module requires a FULL PROFILE device.

I hope someone will work on changing that since it excludes the i.MX6 range of CPU's, which uses the Vivante graphics acceleration cores (it supports OpenCL 1.2 EP).

Best regards

Peter

edit flag offensive delete link more

Comments

1

I encounter the same problem with asker, while my device is Mali-T764, chich is FULL PROFILE device.

rossi_lhf gravatar imagerossi_lhf ( 2015-03-27 03:36:28 -0600 )edit

@rossi_lhf: I see here http://answers.opencv.org/question/58... you probably already made OpenCL work. May I ask you what was the problem and how did you solve it? I would like to get the Embedded profile running...

Kozuch gravatar imageKozuch ( 2015-04-23 05:46:54 -0600 )edit
0

answered 2015-07-06 16:24:23 -0600

why are you using opencv 2.x to do opencl, why don't you use opencv 3.x UMat type that is supposed to give "transparent" opencl usage ?

edit flag offensive delete link more

Comments

Sorry but this will not work, OpenCV simply does not support the embedded profile version of OpenCL for the moment...

StevenPuttemans gravatar imageStevenPuttemans ( 2015-07-07 01:56:53 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2013-12-06 02:05:31 -0600

Seen: 2,357 times

Last updated: Jan 21 '14