Hi Xiaoyoung,

Did you try playing around with the local-group size itself ? For example, try using cl::NDRange(8, 8) instead of (16, 16). May be it is a device specific limit. Try querying the maximum work group size from the device, you can get that by asking for the value of 'CL_DEVICE_MAX_WORK_GROUP_SIZE' from the device in question.


Hope that helps.

Regards,
Pradeep.