Embed CL code into C++

16 views
Skip to first unread message

Viewon01

unread,
Jun 15, 2011, 10:19:50 AM6/15/11
to clpp
Hi,

I'm searching a way to embed the "cl" (kernel) code into the C++. I
don't want to distribute some "cl" file with the library when we will
deliver it !
So, if someone has an idea ?

A c++ header generator can be a solution, it will convert .cl file to
something like this :

#ifdef RELEASE

string _kernel_code_xxxx = "kernel void sort()"
"{"
"..."
"};";

#else // DEBUG

string _kernel_code_xxxx = ReadKernelCode("xxx");

#endif

If someone has some time to do this :-P

philipp...@gmail.com

unread,
Jun 16, 2011, 4:46:23 PM6/16/11
to cl...@googlegroups.com
finally, how did you solve this issue ?
Apparently, now we have to remove some .cpp (previously .cl) in the
compilation...

bests

ph

Le 15/06/11 16:19, Viewon01 a �crit :

kr...@polarlights.net

unread,
Jun 17, 2011, 1:53:22 AM6/17/11
to cl...@googlegroups.com
It is not solved, we still need the .cl files !

Krys

-----Original Message-----
From: "philipp...@gmail.com" <philipp...@gmail.com>
Sent: Thursday, June 16, 2011 4:46pm
To: cl...@googlegroups.com
Subject: Re: Embed CL code into C++

finally, how did you solve this issue ?
Apparently, now we have to remove some .cpp (previously .cl) in the
compilation...

bests

ph

Le 15/06/11 16:19, Viewon01 a écrit :

Reply all
Reply to author
Forward
0 new messages