Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cuda 1D纹理内存限制_Cuda_Gpu_Gnupg - Fatal编程技术网

Cuda 1D纹理内存限制

Cuda 1D纹理内存限制,cuda,gpu,gnupg,Cuda,Gpu,Gnupg,我对纹理记忆的局限性有点困惑。是65536还是我能处理更大的阵列 目前我正在使用2D纹理。将问题带到一维纹理将使其更容易 Thx预先CUDA中有两种类型的1D纹理。绑定到数组的纹理通过tex1d()读取,并限制为65536个元素的大小,正如您在问题中所怀疑的那样。绑定到线性内存的纹理可以通过227=134217728个元素进行访问,并且具有更大的限制。查看编程手册。当我试图改变我的呼叫时,这个答案非常有用,比如;cudamalocarray(&cuArray,&channelDesc,20485

我对纹理记忆的局限性有点困惑。是65536还是我能处理更大的阵列

目前我正在使用2D纹理。将问题带到一维纹理将使其更容易


Thx预先

CUDA中有两种类型的1D纹理。绑定到数组的纹理通过
tex1d()
读取,并限制为65536个元素的大小,正如您在问题中所怀疑的那样。绑定到线性内存的纹理可以通过227=134217728个元素进行访问,并且具有更大的限制。查看编程手册。

当我试图改变我的呼叫时,这个答案非常有用,比如;cudamalocarray(&cuArray,&channelDesc,2048500)//works cudamalocarray(&cuArray,&channelDesc,2048*500,1)//cudaErrorGlad您觉得我的答案很有帮助。在这里,我还更新了第二个链接。