Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对纹理内存的限制有点困惑。是 65536 还是我能够处理更大的数组。
目前我正在使用 2D 纹理。将问题带到一维纹理会更容易。
提前谢谢
CUDA 中有两种类型的一维纹理。tex1d()正如您在问题中所怀疑的那样,绑定到数组的纹理被读取并限制为 65536 个元素的大小。绑定到线性内存的纹理是通过访问的,tex1dfetch()并且具有更大的限制,即 2 27 = 134,217,728 个元素。检查编程手册的表 14。
tex1d()
tex1dfetch()