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 withcommit_group()and wait withwait_group()before readingdest. The same layout requirements apply tooffsets,maskanddest.Element
iis read frombase + soffset + offsets[i]. Masked-off and out-of-bounds elements write zero, at no extra cost; apply any other fill value after loading fromdest. Seemake_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.