Skip to content

Commit b1bd301

Browse files
authored
clarify subgroup barrier behavior in non-uniform control flow (#525)
1 parent e397391 commit b1bd301

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

env/validation_rules.asciidoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ And, the memory-order constraint in _Memory Semantics_ must be one of:
117117
supporting {CL_DEVICE_ATOMIC_ORDER_SEQ_CST} in
118118
{CL_DEVICE_ATOMIC_FENCE_CAPABILITIES}.
119119

120+
In all OpenCL environments, for the *Barrier Instruction* *OpControlBarrier*,
121+
when the _Scope_ for _Execution_ is *Subgroup*, behavior is undefined unless
122+
all invocations in the subgroup execute the same dynamic instance of the
123+
instruction.
124+
120125
In an OpenCL 1.2 environment,
121126
for the *Atomic Instructions*, the _Scope_ for _Memory_ must be *Device*,
122127
and the memory-order constraint in _Memory Semantics_ must be *Relaxed*.

0 commit comments

Comments
 (0)