ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

vISA BARRIER

T1 intel-gpu simd insn
Intel GPU vISA Instruction: BARRIER
SourceIntel Graphics Compiler Official Virtual ISA (vISA) Specification (intel_gpu_visa)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeIntel Gen8–Xe2 vISA
Intel Gen9–Gen12 / Xe-LP / Xe-HPG / Xe-HPC / Xe2
License & VersionMIT
master
Upstreamhttps://github.com/intel/intel-graphics-compiler/tree/master/documentation/visa
Privilegeuser
ExtensionsBDW, SKL, BXT, ICLLP, TGLLP

Summary

Performs barrier synchronization for all threads within the same thread group.

Syntax / Encoding

BARRIER

Binary Encodings (1)

WidthFormatBit PatternMask / Match
Intel-vISA /

Reference Notes

## Opcode

  BARRIER = 0x59

## Format

## Semantics


```

                    Barrier synchronization within a thread group.
```

## Description






    Performs barrier synchronization for all threads within the same thread group.
    The barrier instruction causes the executing thread to wait until all threads
    in the same thread group have executed the barrier instruction. Memory
    ordering is also guaranteed by this instruction. The behavior is undefined
    if this instruction is executed in divergent control flow.


#### Properties




## Text
```
BARRIER
```

## Notes





    This instruction may only be used with the thread-group execution model.