Radix Sort New Files

21 views
Skip to first unread message

rapatel

unread,
Sep 1, 2011, 1:56:30 PM9/1/11
to clpp
Hi,

I noticed that you recently added the file
clppSort_RadixSortGPU_CLKernel.h, which contains the kernel code array
clCode_clppSort_RadixSort[]. I am wondering why you did this, and why
did you still keep the original clppSort_RadixSort.cl file if it is
not being used anymore?

Ritesh

kr...@polarlights.net

unread,
Sep 1, 2011, 2:40:05 PM9/1/11
to cl...@googlegroups.com
Good question,

When you develop, you modify the ".cl" file. (See the constructor of the sort algorithm).
But when the project is ready for delivery, you generate a new ".h" file (See the .bat file) that contains the ".cl" file.

It allow you to deliver CLPP as a DLL without all the ".cl" file. This way, it is easier to deliver OpenCL code.

Do you understand ?

Krys

Chad Brewbaker

unread,
Sep 1, 2011, 2:48:06 PM9/1/11
to cl...@googlegroups.com

What are these DLL files you speak of :p.  Yeah, some will want to run clpp on straight cl files, some will want them in DLLs, some will want them compiled into their app statically. We should plan for all. Also, I am writing a short WebCL demo.

rapatel

unread,
Sep 1, 2011, 6:32:43 PM9/1/11
to clpp
Yes, I think I understand. Thanks for the explanation. The reason I
noticed this was because I made some changes on my own to the .cl
file, and it broke my application code.

Thanks,
Ritesh

kr...@polarlights.net

unread,
Sep 2, 2011, 2:10:09 AM9/2/11
to cl...@googlegroups.com
We can do both, the current code structure allow to use either the CL file either the DLL.

But honnestly I don't see any situation where peoples really need to use ".cl" file, except when they work on CLPP !

Krys

Reply all
Reply to author
Forward
0 new messages