Hi,
I just wondered if there is a possibility to allocate shared mem in opencl dynamically like in CUDA. Maybe someone can help me.
Thanks in advance.
Daniel
Hi,
I just wondered if there is a possibility to allocate shared mem in opencl dynamically like in CUDA. Maybe someone can help me.
Thanks in advance.
Daniel
You just have to declare corresponding pointer to the shared memory (with “__local” qualifier) as kernel argument, and then in the corresponding clSetKernelArg() call, you put 0 as last argument, and the shared memory size as next-to-last argument.