title: Is there a maximum limit to private memory in OpenCL?
body: <p>Does the OpenCL specification set any maximum limit on the amount of private memory that can be used? If so, how do I get this number?</p>
  
  <p>I have a function which gives the correct result when run outside OpenCL, but when converted to a kernel, it spews out garbage. I checked the amount of private memory being used per work item using the CL_KERNEL_PRIVATE_MEM_SIZE flag and it is ~ 4000 bytes. I suspect that I am using too much private memory and this is somehow leading to junk computation.</p>