Invalid configuration problem

Hi

I get an “invalid configuration argument” error when I try to execute a kernel on the following configuration: block size: 8 x 8 x 32 and grid size: 4 x 4 x 1. I have a GeForce 8400M GS card and the deviceQuery program from SDK says that the maximum sizes are block: 512 x 512 x 64 and grid: 65535 x 65535 x 1. I’ve read the programming guide and there is nothing related to this problem. Thanks.

Maximum number of threads per block: 512.
8832 = 2048.

yup, I forgot about this condition. Thanks.