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

triton.experimental.gluon.language.amd.cdna5.mbarrier.init(mbarrier, count, _semantic=None)

Initialize an mbarrier with a specified count.

An mbarrier consists of an init count, a pending count and a phase. At initialization, the init count and pending count are initialized with the given count and the phase is initialized to 0.

Parameters:
  • mbarrier (shared_memory_descriptor) – The barrier object to initialize.

  • count (int) – The initial count for the barrier. Must be a positive integer.