cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

boxerab
Challenger

Local memory barrier and work group size

I have a work group of size 128. I can guarantee that for each of the four subsets of consecutive 32 work items,

that all items in the subset hit a local memory barrier. But, across subsets, this may not be the case.

Will this be a problem?  Do all 128 items need to hit the barrier?  What are the risks if not all them do?

Subset 0:  0,1,2....31

Subset 1: 32,33,....64

.

Subset 3: 96,97....128

0 Likes
1 Solution
dipak
Big Boss

As per the OpenCL spec, all the work-items in a work-group must hit the work_group_barrier function, otherwise the behaviour is undefined.

View solution in original post

0 Likes
1 Reply
dipak
Big Boss

As per the OpenCL spec, all the work-items in a work-group must hit the work_group_barrier function, otherwise the behaviour is undefined.

0 Likes