Limitation of local sizes on N-Dimensional NDRanged problems

If my graphics card has a limitation of 512 work-items per work-group and I’m modelling a 2-dimensional problem, that means the multiplication of the local size I chose for each dimension can be no more that 512 right? Like 1632, 648, etc.

That’s right. See section 5.6 of the spec.