我的CUDA纹理内存的大小是多少? [英] What is the size of my CUDA texture memory?

查看:1048
本文介绍了我的CUDA纹理内存的大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何解释 deviceQuery 示例输出的纹理内存信息以了解纹理内存大小?
这是纹理内存的输出。

How to interpret texture memory information output by deviceQuery sample to know texture memory size? Here is output of my texture memory.


最大纹理尺寸尺寸(x,y,z)1D = ,2D =(65536,65535),3D =(2048,2048,2048)

最大分层纹理尺寸(dim)x层1D =(16384)x 2048,2D =(16384,16384)x 2048

Max Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536,65535),3D=(2048,2048,2048)
Max Layered Texture Size (dim) x layers 1D=(16384) x 2048, 2D=(16384,16384) x 2048


推荐答案

这是一个常见的误解, 在CUDA GPU。只有纹理,这是通过专用硬件访问的全局内存分配,它具有内置的缓存,过滤和寻址限制,导致在文档和设备查询中报告的大小限制。因此,限制是大致全局内存的自由量(允许在CUDA数组中填充和对齐)或您已引用的维度限制。

It is a common misconception, but there is no such thing as "texture memory" in CUDA GPUs. There are only textures, which are global memory allocations accessed through dedicated hardware which has inbuilt cache, filtering and addressing limitations which lead to the size limits you see reported in the documentation and device query. So the limit is either roughly the free amount of global memory (allowing for padding and alignment in CUDA arrays) or the dimensional limits you already quoted.

这篇关于我的CUDA纹理内存的大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆