Reputation: 2278
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
Upvotes: 2
Views: 2125
Reputation: 7255
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.
Upvotes: 7