OpenCV with OpenCL support on BBAI

180 views
Skip to first unread message

szymon.k...@gmail.com

unread,
Jan 7, 2020, 11:09:57 AM1/7/20
to BeagleBoard
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 
 


jonnymo

unread,
Jan 7, 2020, 12:33:14 PM1/7/20
to Beagle Board
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


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

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/dc4ec0fb-1ac0-4326-bf94-692cf7fc94df%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages