is blockDim the number of blocks or the number of threads in a block?
blockDim means the dimensions of the block.
For ex blockDim.x contains the number of threads in the block in the x direction
blockDim.y … no of threads in the block in the y direction and so on.
Also blockDim.xblockDim.yblockDim.z equals the no of threads in a block