triton.experimental.gluon.language.amd.cdna3.buffer.atomic_store
- triton.experimental.gluon.language.amd.cdna3.buffer.atomic_store(value, desc, offsets, mask=None, sem=None, scope=None, *, soffset=None, _semantic=None)
Atomically store to global memory through a buffer descriptor.
The buffer counterpart of
atomic_store(): each element is stored atomically. Elementiis written tobase + soffset + offsets[i]; masked-off and out-of-bounds elements are dropped. Seemake_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.
sem (str, optional) –
"release"or"relaxed". Defaults to"release".scope (str, optional) –
"cta","gpu"or"sys". Defaults to"gpu".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
offsetsand 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).