Reputation: 7371
I am just wondering what is the semantic of the following kernel
#define T float
__kernel foo(){
__local T bar[32];
__local T a;
}
is bar/a shared between a work-group or every work-item will create a separate copy of bar/a?
Upvotes: 0
Views: 65
Reputation: 26868
They are both shared between the work-group, so there will only be one copy of bar
and a
per workgroup.
Upvotes: 1