Confusion about thread per block

hi all,

My GPU conf is:-

Name : GeForce 9800 GX2
Capability : 1 1
Memory Global: 512 Mb
Memory Const : 64 Kb
Memory Shared: 16 Kb
Clock : 1.512 GHz
Processors : 16
Cores : 128
Warp : 32
Max Thr/Blk : 512
Max Blk Size : 512 512 64
Max Grid Size: 65535 65535 1

I am confused about the threads per block i can use.

Is that Thr/Blk per dimension? ie. can u get 51251264 threads for my 3D block of size 51251264 ??

what are the other factors thread per block is dependent upon?

thank you
miztaken

The maximum number of threads per block is 512, total. The maximum in each dimension is 512, 512, 64…so you could have a 512x1x1 block, a 256x2x1, 3x2x64, etc., as long as the total number is less than 512.