Search code examples
cudagpugnupg

1D-Texture Memory Limits


I am a little bit confused about the limitations of texture memory. Is it 65536 or am i able to handle also arrays way larger.

At the Moment I'm using 2D-Textures. Bringing the problem to a 1D-Texture would make it easier.

Thx in advance


Solution

  • There are two types of 1D textures in CUDA. Textures bound to arrays are read through tex1d() and are limited to a size of 65536 elements as you suspected in your question. Textures bound to linear memory are accessed through tex1dfetch() and have a much larger limit of 227 = 134,217,728 elements. Check table 14 of the Programming Manual.