PTX ISA v9.4

9.7.10.13. Data Movement and Conversion Instructions: multimem.st.async

multimem.st.async

Perform asynchronous store with release ordering on the multimem address.

Syntax

ptx
multimem.st.async.sem.scope{.ss}.type [a], b;

.sem   = { .release };
.scope = { .gpu, .sys };
.ss    = { .global };
.type  = { .b8, .b16, .b32, .b64,
            .u8, .u16, .u32, .u64,
            .s8, .s16, .s32, .s64,
            .f32, .f64 };

Description

multimem.st.async is a non-blocking instruction which initiates an asynchronous store operation that stores the value specified by source operand b to the memory locations residing on each GPU's memory referred to by the destination multimem address operand a.

Address operand a must be a multimem address. Otherwise, the behavior is undefined.

Operands

  • a is a destination address, and must be either a register, or of the form register + immOff, as described in Addresses as Operands.
  • b is a source value, of the type indicated by qualifier .type.

Qualifiers

  • The mandatory .sem modifier specifies the memory ordering semantics as described in the Memory Consistency Model.
  • The mandatory .scope modifier specifies the set of threads with which this instruction can directly synchronize. The store operation here is a strong memory operation with .release semantics at the scope specified by .scope.
  • .ss specifies the state space of the destination operand a. If .ss is specified, it must be .global. If .ss is not specified, Generic Addressing is used for operand a. If the generic address specified does not fall within the address window of .global state space, the behavior is undefined.
  • .type specifies the type of the source operand b.

PTX ISA Notes

Introduced in PTX ISA version 9.3.

Target ISA Notes

Requires architecture sm_100 or higher.

Examples

ptx
// Release store to multimem address, GPU scope, explicit .global state space.
multimem.st.async.release.gpu.global.u32 [mm_addr], src_u32;

// Release store, system scope, generic addressing for multimem operand.
multimem.st.async.release.sys.f64 [mm_addr], src_f64;
esc
Type to search across all documentation