Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV ----> Open CL Embedded Profile

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?

Regards Roger

OpenCV ----> Open CL Embedded Profile

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?

Regards Roger

OpenCV ----> Open CL Embedded Profile

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

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

Regards Roger

OpenCV ----> Open CL Embedded Profile

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

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

Regards Roger

OpenCV ----> Open CL Embedded Profile

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

OpenCV ----> Open CL Embedded Profile

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

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

OpenCV ----> Open CL Embedded Profile

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