I would love to be able to use C++ in my OpenCL kernels.
However, the OpenCL 3.0 host-side API documentation, Section 5.8.1, says:
5.8.1. Creating Program Objects
To creates a program object for a context and load source code into that object, call the function
cl_program clCreateProgramWithSource( cl_context context, cl_uint count, const char** strings, const size_t* lengths, cl_int* errcode_ret);
... snip ...
The source code specified by strings is either an OpenCL C program source, header or implementation-defined source for custom devices that support an online compiler. OpenCL C++ is not supported as an online-compiled kernel language through this interface.
So how am I supposed to compile OpenCL C++ kernel code? I can't find another API function that takes that as input.