Re: JOCL code working under Snow Leopard but not on Lion
Posted by Giovanni Idili on Nov 19, 2011; 4:30am
URL: https://forum.jogamp.org/Code-working-under-Snow-Leopard-but-not-on-Lion-tp3296875p3520391.html
Thanks for the explanation.
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?