[cfe-dev] OpenCL support - using metadata

Pekka Jääskeläinen pekka.jaaskelainen at tut.fi
Mon Mar 7 08:21:09 PST 2011


On 03/07/2011 06:01 PM, David Neto wrote:
 > But it's an implementation choice for the backend/runtime system.

OK, got it now.

> And just to be clear:  The __local storage is shared between possibly multiple
> work item threads in each work group.  For example, if your work group is of
> size 16, then those 16 threads will simultaneously use the same base pointer
> for their __local storage.  (For example, that's why it's meaningful to have
> barrier(CLK_LOCAL_MEM_FENCE).)

Yes, this is clear. The base pointer is used to share the local memory
space between the WGs only, not between WIs inside a WG.

-- 
Pekka



More information about the cfe-dev mailing list