c++ code into a OpenCL kernel????

Hi all,

I’m just starting in OpenCL coding, so I would like to know if it’s possible to execute c++ codes (functions, objects, …) into OpenCL kernels. I have a set of classes in my code, and I’m trying to make less changes as possible.

if it’s not possible I will code all my classes to c structs!!!

Thanks in advance!!!

The reference manual covers the language extensively. Specifically chapter 6 “The OpenCL C Programming Language”

It’s a dialect of C99.