The synchronization function barrier synchronizes all work-items in a sub-group, and it orders memory operations to the specified address spaces. On hardware where sub-groups are executed in SIMD, a sub-group barrier is expected to be a no-op.
Member function | Description |
---|---|
void barrier(access::fence_space accessSpace = access::fence_space::global_and_local) const; | Executes a sub-group barrier with an optional memory fence specified by accessSpace. |