Reputation: 3144
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?
Upvotes: 3
Views: 4073
Reputation: 17742
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).
Upvotes: 3
Reputation: 56397
You can query this information at runtime using clGetDeviceInfo and CL_DEVICE_MAX_MEM_ALLOC_SIZE.
See clGetDeviceInfo Man Page for more information.
Upvotes: 5