triton.experimental.gluon.language.amd.cdna4.buffer.load_to_shared

triton.experimental.gluon.language.amd.cdna4.buffer.load_to_shared(dest, desc, offsets, mask=None, *, soffset=None, scope=None, cache_policy=None, _semantic=None)

Load from global memory through a buffer descriptor directly into shared memory.

Like buffer_load_to_shared(), the copy is asynchronous: commit it with commit_group() and wait with wait_group() before reading dest. The same layout requirements apply to offsets, mask and dest.

Element i is read from base + soffset + offsets[i]. Masked-off and out-of-bounds elements write zero, at no extra cost; apply any other fill value after loading from dest. See make_buffer_descriptor() for the bounds.

Parameters:
  • dest (shared_memory_descriptor) – Destination shared memory descriptor.

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

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

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

  • soffset (int32 scalar, optional) – Scalar offset, in elements, added to every element’s offset and counted by the bounds check. Defaults to None (0).

  • scope (str, optional) – "cta", "gpu" or "sys". The load reads data visible at that scope. It is not atomic and orders nothing. Defaults to None.

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