Hi !
I have made this nice OpenCL kernel source code file to C/C++ char string converter:
https://github.com/MatejGomboc/OpenC...ring-converter
I hope you will find it useful !
Best regards.
Hi MatejG,
Haven't tried it, but I took a quick peek through your py script & repo. Tools like this could go a long way to eliminating a tedious task for developers bringing up their kernels.
Thanks for the reference.
-MichaelC
Another option is to use your compiler's preprocessor and a utility like xxd to produce an includable source or binary kernel.
To create an includable file of source kernels:
To create an includable file of binary kernels:
Then just load the source or binary kernel(s) with the appropriate OpenCL functions.
For more complete information about compiler optimizations, see our Optimization Notice.