9.7.10. Data Movement and Conversion Instructions
These instructions copy data from place to place, and from state space to state space, possibly converting it from one format to another. mov, ld, ldu, and st operate on both scalar and vector types. The isspacep instruction is provided to query whether a generic address falls within a particular state space window. The cvta instruction converts addresses between generic and const, global, local, or shared state spaces.
Instructions ld, st, suld, and sust support optional cache operations.
The Data Movement and Conversion Instructions are:
movshfl.syncprmtldldustst.asyncst.bulkmultimem.ld_reduce,multimem.st,multimem.redmultimem.st.asyncprefetch,prefetchuisspacepcvtacvtcvt.packcp.asynccp.async.commit_groupcp.async.wait_group,cp.async.wait_allcp.async.bulkcp.reduce.async.bulkcp.async.bulk.prefetchmultimem.cp.async.bulkmultimem.cp.reduce.async.bulkcp.async.bulk.tensorcp.reduce.async.bulk.tensorcp.async.bulk.prefetch.tensorcp.async.bulk.commit_groupcp.async.bulk.wait_grouptensormap.replacespcompressspdecompress
Pages
- Cache Operators — Optional cache operators on load and store instructions and their meanings.
- Cache Eviction Priority Hints — Optional eviction priority hints on load and store instructions.
- mov — Set a register from a register, immediate, special register, or the address of a variable or function.
- mov (vector) — Move vector-to-scalar (pack) or scalar-to-vector (unpack).
- shfl (deprecated) — Register data shuffle within threads of a warp, without a
.syncqualifier. - shfl.sync — Register data shuffle within threads of a warp, synchronising on a member mask.
- prmt — Permute bytes from a register pair.
- ld — Load a register variable from an addressable state space variable.
- ld.global.nc — Load a register variable from global state space via the non-coherent cache.
- ldu — Load read-only data from an address that is common across threads in the warp.
- st — Store a register variable to an addressable state space variable.
- st.async — Asynchronous store to distributed shared memory with mbarrier completion.
- multimem.st.async — Asynchronous store to a multimem address.
- st.bulk — Initialize a region of shared memory.
- multimem.ld_reduce, multimem.st, multimem.red — Load-reduce, store and reduction operations on multimem addresses.
- prefetch, prefetchu — Prefetch a line containing a generic address into the specified cache level.
- applypriority — Apply a cache eviction priority to the specified address.
- applypriority.async.bulk — Apply a cache eviction priority to a bulk region of memory.
- applypriority.async.bulk.tensor — Apply a cache eviction priority to tensor data in memory.
- discard — Invalidate the data at the specified address without writing it back.
- createpolicy — Create a cache eviction policy for the specified cache level.
- isspacep — Query whether a generic address falls within a specified state space window.
- cvta — Convert addresses between generic and const, global, local, or shared state spaces.
- cvt — Convert a value from one type to another.
- cvt.pack — Convert two integer values and pack the results together.
- mapa — Map the address of a shared variable in the target CTA.
- getctarank — Generate the CTA rank of the address.
- Asynchronous copy — Asynchronous data copy instructions, their completion mechanisms and the async proxy.
- tensormap.replace — Modify a field of a tensor-map object.
- spcompress — Compress a structured sparse matrix.
- spdecompress — Decompress a structured sparse matrix.