2D shared array

Hi,

How does 2D shared array of type T is arrange in shared memory Banks ? (i.e. from line0 to line-N , or is it like **pointer)
can I cast it like in 1D Array i.e. moving on it with INDEX = (blockIdx.x*blockDim.x+threadIdx.x) ?

Thanks
Miki

How does 2D shared array of type T is arrange in shared memory Banks ?

Yes, it is.

can I cast it like in 1D Array i.e. moving on it with INDEX = (blockIdx.x*blockDim.x+threadIdx.x) ?

Yes, you can. You should pay attention of the index of each elements in shared array.