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.
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.
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.
Size of global memory will depend on the device.
The API call clGetDeviceInfo() can be used to get information about the memory size.