Hide/Encrypt/Load Kernel code ?

Discussion created by spectral on Oct 13, 2010
Latest reply on Oct 19, 2010 by nou



I just would like to know how you store your OpenCL kernel in your C++ software ?

Some peoples use external files, but I don't want that my 'code' will be available to my customers !

Currently I use simple strings like this :

string code =

"void function() \n"
"{ \n"
" ..."
"} \n";

 But really it is not always easy to write some OpenCL code like this !

Thanks for your suggestions