Thanks for the explanation.compile WG size is the unintuitive name for the (optional) size you declared in your kernel.
I changed this line on code:
int localWorkSize = min(device.getMaxWorkGroupSize(), 256);
Into:
int localWorkSize = min((int)kernel.getWorkGroupSize(device), 256);
and now it's working fine.
One last question though: what's the difference between CLKernel.getWorkGroupSize and CLKernel.getCompileWorkGroupSize?
-- http://michael-bien.com/
Free forum by Nabble | Edit this page |