CL_DEVICE_LOCAL_MEM_SIZE returns size of local memory of entire device or computeunit

Hi,

I am getting local memory size as 8KB, when i queried using function clGetDeviceInfo with flag CL_DEVICE_LOCAL_MEM_SIZE, is that 8KB memory is for each compute unit or for entire device? i think it is for entire device and each compute unit will have 8kb/(no of compute units) is it?

Thanks,
Shabuddin.

CL_DEVICE_LOCAL_MEM_SIZE returns the max amount of local memory that a work-group can allocate (and use). Since a work-group can run on only one compute unit, this amount of memory is for each compute unit.