triton.experimental.gluon.language.amd.cdna5.mbarrier

Shared-memory barriers (mbarriers) for CDNA5.

An mbarrier lives in shared memory allocated with MBarrierLayout and tracks a pending arrival count and a phase. Set it up with init(), signal it with arrive() and block on phase completion with wait(). Asynchronous copies and TDM operations can also arrive on an mbarrier when they complete.

Functions

init

Initialize an mbarrier with a specified count.

wait

Wait until the mbarrier's phase differs from the provided phase value.

arrive

Arrive at an mbarrier with a specified count.

Classes

MBarrierLayout

Layout for mbarrier synchronization.