triton.experimental.gluon.language.nvidia.hopper.bulk.async_store

triton.experimental.gluon.language.nvidia.hopper.bulk.async_store(pointer, smem, num_elements, pred=True, _semantic=None)

Copy contiguous shared-memory ranges to global memory asynchronously.

Requires compute capability 9.0+ and PTX 8.0+. pointer and pred are scalars. Both addresses must be 16-byte aligned. The size and shared layout requirements are the same as for async_load(): each CTA copies a contiguous physical range, without unswizzling. num_elements is a positive compile-time total across distinct CTA tiles. Multi-CTA copies must fill the source view; single-CTA copies may copy a prefix. Tiles are packed in increasing CTA-id order with replicated bits omitted. Only one representative of each replicated tile issues the store.

Each executed store commits one group to the same queue as TMA stores. A false predicate neither copies nor commits a group. Call store_wait() before modifying or reusing the shared source. To access the global destination or publish it with a release operation, first call store_wait(0, read_only=False, deps=[smem]). Issue and wait must execute in the same warp-specialized region. The compiler inserts the shared async-proxy fence needed to publish preceding shared-memory writes.

Compiler dependencies and ConSan conservatively cover the entire source view, including for partial copies. GSan records the exact global write range at issue time; it does not track the pending transfer to completion.

Parameters:
  • pointer – Scalar global-memory destination pointer.

  • smem – Source shared-memory descriptor.

  • num_elements – Compile-time total number of source elements.

  • pred – Scalar predicate. Defaults to True.