cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

boxerab
Challenger

Local memory barrier and work group size

Jump to solution

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
Reply
1 Solution

Accepted Solutions
dipak
Staff
Staff

Re: Local memory barrier and work group size

Jump to solution

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
Reply
1 Reply
dipak
Staff
Staff

Re: Local memory barrier and work group size

Jump to solution

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
Reply