Memory allocation Nvidia vs AMD

淺唱寂寞╮ 提交于 2020-01-13 20:36:10

问题


I know there is a 128MB limit for a single block of GPU memory on AMD GPU's. Is there a similar limit on Nvidia GPU's?


回答1:


On GTX 560 clGetDeviceInfo returns 256MiB for CL_DEVICE_MAX_MEM_ALLOC_SIZE, however I can allocate slightly less than 1GiB. See this thread discussing the issue.

On AMD however this limit is enforced. You can raise it by changing GPU_MAX_HEAP_SIZE and GPU_MAX_ALLOC_SIZE environment variables (see this thread).




回答2:


You can query this information at runtime using clGetDeviceInfo and CL_DEVICE_MAX_MEM_ALLOC_SIZE.

See clGetDeviceInfo Man Page for more information.



来源:https://stackoverflow.com/questions/6432659/memory-allocation-nvidia-vs-amd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!