s_barrier GPU Native ISA AMD Scalar
Barriers
Synchronize all waves of the executing workgroup at this point.
Encoding
The ENC_SOPP layout from AMD's machine-readable ISA specification (AMD CDNA 4). Opcode 10 in OP rebuilds 0xBF8A0000, an identifier AMD lists for this encoding. Not the same in every generation: AMD RDNA 3.5 (opcode 61), AMD RDNA 3 (opcode 61). The same in AMD CDNA 3, AMD CDNA 2, AMD CDNA 1, AMD RDNA 2, AMD RDNA 1.
Operands
Operand details have not yet been curated for this instruction.
GFX Target Compatibility
| Target | Support |
|---|---|
| gfx942 | ✅ Supported |
| gfx1100 | ✅ Supported |
Related PTX Concepts
Related
More in Barriers
Reference
Description
Semantics
Example
s_barrier // block until every wave in the workgroup arrives hereOriginal illustrative example, written for this site (not reproduced from a specific AMD document).
Sources
- AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.