[cfe-dev] OpenCL support - using metadata

Pekka Jääskeläinen pekka.jaaskelainen at tut.fi
Fri Mar 4 01:24:54 PST 2011


Hi,

On 03/03/2011 10:11 PM, David Neto wrote:
> Last December I objected to the technique of transforming a __local
> variable into a global-scope static variable. [1] [2].   In a private
> email, Krister later explained how it all works out ok, as long as the

Of course I do not know the explanation of Krister in the private email
but doesn't this approach introduce problems in multithreaded
execution of work groups in a single address space machine?

That is, in case locals are converted to global-scope static variables,
one cannot execute multiple work groups in parallel in the same process
due to the shared storage locations for locals?

I understand it works nicely if you have per core local address spaces
in the machine and can execute the WGs in different cores (like in
NVIDIA GPUs I've understood), but what about the execution in a GPP
SMP multicore execution with threads?

Is this known and accepted limitation or did I just misunderstand
something (which is very likely the case)?

-- 
Pekka



More information about the cfe-dev mailing list