OpenCV with OpenCL support on BBAI

Hi,

I have a problem when trying to use OpenCV with OpenCL support in a cpp application. When i print the openCV build information I can see that it has OpenCL with dynamic linking. However, when I run a simple application using openCL it seems that OpenCV does not recognize OpenCL:

#include <opencv2/core/ocl.hpp>
[…]

cv::ocl::haveOpenCL();
FALSE

I tried solving the problem by creating symbolic links to the libTIOpenCL* .so files, using default OpenCV naming convention (libOpenCV*).
This resulted in OpenCV recognizing the OpenCL but still I’m unable to force the OpenCL usage:

#include <opencv2/core/ocl.hpp>
[…]

cv::ocl::haveOpenCL();
TRUE

cv::ocl::setUseOpenCL(true);
cv::ocl::useOpenCL();
FALSE

What am I missing here? Does the current system provide OpenCL support for OpenCV?

Kr,
Szymon

I’m not sure if it is related to your issue or not, but I tried to go through the Cloud9 OpenCL examples for the BB AI referenced in Introduction_to_OpenCL_slides.pdf and ran into a compile issue. I posted an issue with the github repo for this

https://github.com/beagleboard/cloud9-examples/issues/20

The example shows coping the OpenCL example code to a local user folder and recompile the examples. This is where I ran into an issue.

Cheers,

Jon