For OpenCL, specifically: What is the maximum size that a local float array can be?
I set up the kernel like this:
__kernel void mykern( unsigned int N, __global float* input, __global float* output, __local float* sdata )
{
// ...
}
What is the maximum that I can set the size of sdata to be (in OpenCL)?
I did the following in C++ OpenCL:
clSetKernelArg(kf_myvred,3,(lws[0])*sizeof(cl_float),NULL);
clEnqueueNDRangeKernel(mycommandq,kf_myvred,1,NULL,work,lws,0,NULL,NULL);
If the size is too big, then clEnqueueNDRangeKernel returns an error of CL_OUT_OF_RESOURCES. But I'm not sure what the limit is.