triton.experimental.gluon.language.amd.cdna5.mbarrier.arrive
- triton.experimental.gluon.language.amd.cdna5.mbarrier.arrive(mbarrier, *, count=1, _semantic=None)
Arrive at an mbarrier with a specified count.
The operation requires a
countattribute of at least 1, and decreases the pending arrival count of thembarrierby the specific count. If the pending count reaches zero, the phase changes (is decremented in a wraparound manner) and the pending count is reloaded with the init count value. Returns the mbarrier’s phase parity (0 for even, 1 for odd) prior to thearriveoperation.- Parameters:
mbarrier (shared_memory_descriptor) – Barrier to be signalled.
count (int) – Count to arrive with. Defaults to 1.
- Returns:
Phase of the mbarrier prior to the
arriveoperation.- Return type:
int