Problems using cuda array for 2D textures Size restrictions?

I’ve read that 2D textures are limited to 64K x 32K elements.

However, if I read texture values into N x 8 2D CUDA array, bind it to a 2D texture, and do a look-up, the results are not correct when N > 8K. The same code works fine in emulation mode and when N < 8K.

Any ideas what might be going wrong here?

Maybe you are exceeding the Global Memory of your GPU?

I’m storing only a float value in the texture. For 16K x 8, the size is only 512KB. I’m pretty sure I have enough memory left because I’m able to allocate memory at this stage.