IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

tensor_load_to_lds

def tensor_load_to_lds[cache_policy: Int = Int(0)](desc: TDMDescriptor)

Issues a TDM global-to-LDS copy described by desc.

Completion is tracked by the wave's TENSORcnt counter; pair it with s_wait_tensorcnt.

Constraints:

Requires CDNA5 (gfx1250) or newer, and cache_policy must be in 0..31.

Parameters:

  • ​cache_policy (Int): 5-bit immediate, three temporal-hint bits followed by two scope bits (defaults to 0, the default policy).

Args:

  • ​desc (TDMDescriptor): The descriptor to issue. It must be wave-uniform, i.e. live in scalar (SGPR) registers.

Was this page helpful?