I am trying to allocate large buffers (around 4500MB) in a 8GB device but it fails on the GPU with the error code CL_INVALID_BUFFER_SIZE. I wonder the memory size from CL_DEVICE_GLOBAL_MEM_SIZE is much lower (around 3630MB) than the device memory size(8GB).
Adreno 620 Android10
Is there a limit on the buffer size? How to break this limit?