C++ libraries in OpenCL C++

Hi,

I was wondering if we can use c++ libraries such as STL C++ or boost c++ or any other c++ libraries in our OpenCL C++ code? Will it work on OpenCL devices?
Is there any other way to use third party open source c++ libraries in OpenCL C++ programs?

Thanks
Best Regards,

Someone please help me out here. I do not have a programming background and still learning stuff.
Thanks

Hello Hassan,
Please are you solve this issue.
I have the same problem. I want to use C++ code and import library in opencl kernel code.
I need help.

All features of C++ are not supported in OpenCL. Here is a list of libraries you can use to write codes. I used Boost Compute and it solved the problem I was working on.
https://www.iwocl.org/resources/opencl-libraries-and-toolkits/

Thank for your reply Hassan,

I am new to openCL developpement.

Now i need to rewrite the C++ code into OpenCL kernel to use GPU ressources in mobile phone.

We also use Android to devellop.

I add for this mail one example of implemetatation of part of kernel.

This functions in kernel is also implement in another files in C++ :

    liftscheme blift(name);
        lwt2<double> lift2(sig,rows,cols,blift,level);
        lift2.getCoef(A,B,C,D);![Genericwavelet|690x387](upload://dsmJ2bD6VDumTN17CMZmYXIwJVy.png) 

And this one is C++ function sig.push_back.

How can i call it in opencl kernel or compile it in opencl kernel?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.