is there a possibility to use self-defined C++ - classes in an OpenCL kernel?
It should work like this:
__kernel void do_something(__global element* input, __global element* output);
int index = get_global_id(0);
output[index] = input[index].update(index);
unknown type name 'class'
I believe OpenCL follows C99 language specification and not C++. The specifications for C++ version of OpenCL is going on. I believe AMD APP has implemented the C++ version of OpenCL. Coming back to your question, I think it's best to have a struct as the interface between C++ and C. The C++ version should be a wrapper around the C implementation, IF you direly need to do so.