Skip to content

Register to TMEM (STTM) #10

Closed
Closed

Description

@feitreim

The TMEM accumulator path is one-directional. We have TMEM -> register (TmemTile::fragment, fragment_tile, LDTM); the reverse is missing.

ThunderKittens' tensor_to_register.cuh has both load_async and store_async.

Needed for any kernel that seeds an accumulator from registers, or computes a correction in registers and feeds it back as an MMA accumulator rather than staging it through shared memory as an operand.

Upstream support is complete. cuda-device exposes the full tcgen05_st_* family at the pinned rev, mirroring the tcgen05_ld_* set we already use — every shape (16x256b, 16x128b, 16x64b, 32x32b, 16x32bx2) times every repeat count times raw / unpack16. tcgen05_store_wait is there too.

Small and self-contained: the shape and lane arithmetic are the inverse of what TmemTile::fragment already does, so this is mostly mirroring existing code against tcgen05_st_16x256b_*.

Depends on #1 (should be written against the final RegTile signature).

Activity

  1. added
    enhancement
    area:memory
    on Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:memoryenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions