I'm working on the CLPP OpenCL Library and can't find a bug, so I request some engineering support from the OpenCL Intel Team... of course if possible.
But then how can I generate cl_int random values ?
Does the way I do is correct ? Or how can I convert 'int' to 'cl_int' ?
The way I do is here (method makeRandomInt32Vector) :
You can download the last SVN version of CLPP from here:
Just change PARAM_SORT_BITS to "32" (or 8,16,24) and run it.
You will see, the application will print in the console that the sorting has failed.
It is quite simple to reproduce. Tell me if you need something else ?