triton.experimental.gluon.language.amd.cdna5.buffer.store

triton.experimental.gluon.language.amd.cdna5.buffer.store(value, desc, offsets, mask=None, *, soffset=None, scope=None, cache_policy=None, _semantic=None)

Store a tensor to global memory through a buffer descriptor.

Element i is written to base + soffset + offsets[i]. Out-of-bounds and masked-off elements are dropped. See make_buffer_descriptor() for the bounds.

Parameters:
  • value (tensor) – The values to store.

  • desc (buffer_descriptor) – Descriptor of the global memory to store to.

  • offsets (tensor) – Offsets of the elements to store, in elements.

  • mask (tensor, optional) – Mask tensor for predicated stores. Defaults to None.

  • scope (str, optional) – "cta", "gpu" or "sys". The store makes its data available at that scope. It is not atomic and orders no other memory operation; follow it with a release to publish. Defaults to None.

  • soffset (int32 scalar or tensor, optional) – Offset, in elements, added to every element’s offset and counted by the bounds check. It is held in the instruction’s scalar offset register, so a uniform advance costs no per-lane arithmetic. A tensor gives each wave its own value: it broadcasts to offsets and must have size 1 in every dimension the lanes of the offsets’ layout span, e.g. shape [M, 1] for [M, N] offsets whose rows each sit in one wave. Defaults to None (0).

  • cache_policy (CachePolicy, optional) – Cache hints. Defaults to None.