cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Raistmer
Adept II

Arrays size limits for OpenCL GPU

What current limits for 1D and 2D arrays size inside kernel ?
For example, in Brook+ and last Catalyst drivers they were 8192 and 8192x8192...
0 Likes
4 Replies
omkaranathan
Adept I

What do you mean by 1D/2D arrays in OpenCL? In Brook+ you had textures, where as you have global memory in OpenCL. Which means you have a pointer containing linear elements, which can be viewed as array of any dimension(not just 1D/2D). The size will depend on the global memory size.

0 Likes

Originally posted by: omkaranathan

What do you mean by 1D/2D arrays in OpenCL? In Brook+ you had textures, where as you have global memory in OpenCL. Which means you have a pointer containing linear elements, which can be viewed as array of any dimension(not just 1D/2D). The size will depend on the global memory size.



And this global memory size limited by installed RAM on GPU or by some arbitrary number like 8192 ?
0 Likes

according to spec there is CL_DEVICE_MAX_MEM_ALLOC_SIZE and minimum size is 128MB or 1/4 of CL_DEVICE_GLOBAL_MEM_SIZE, so most likely it is size of RAM.

0 Likes

Size of global memory will depend on the device.

The API call clGetDeviceInfo() can be used to get information about the memory size.

0 Likes