Skip to content

SwizzledChunks cannot span stacked subtiles: only 64-wide bf16 tiles have a register<->shared path #25

Closed

Description

@feitreim

SharedTile::chunk_writer / SwizzledChunks address within a single 128-byte
swizzle atom, so the register<->shared path only exists for tiles exactly one
subtile wide — 64 bf16 columns.

device-tests says as much where it defines its square tile: "64 bf16 columns
is exactly one 128-byte swizzle atom per row, the only width
SharedTile::chunk_writer accepts."
Every other SharedTile shape in the
crate is wider and reachable only by TMA.

Surfaced by the examples (#18), where writing a result tile back to shared for
a TMA store hits this on any realistic width.

SharedTile already knows how to walk stacked subtiles — SUBTILE_BYTES and
SUBTILES drive the MMA operand walks in mma.rs. This is about giving
SwizzledChunks the same subtile-stride awareness those walks already have,
so a (row, column) past the first atom resolves correctly.

Should land with or near #21 (the shared->register load) and #22 (composed
movers): all three are the same underlying complaint, that the register<->shared
path is narrower than the tiles the library can otherwise describe.

Not the same as #14, which is about other swizzle modes (32B/64B/none) rather
than spanning multiple atoms of the 128B one.

Activity

  1. added
    area:memory
    on Jul 27, 2026
  2. feitreim commented on Jul 27, 2026

    @feitreim
    OwnerAuthor

    Acceptance: update examples/ as part of closing this.

    softmax's [128, 128] tile has no register -> shared path at all, so it cannot write its result back.

    The examples crate (#18) exists so that "done" is checkable in the terms a kernel author cares about, rather than as a claim about a primitive nobody has tried to hold. Concretely, on closing this:

    • Delete any workaround or GAP fence in examples/src/ that this issue removes the need for, and replace it with the real API.
    • If a kernel becomes fully unblocked, move it from aspirational to compiles: flip its header, take it out of its feature gate, and confirm modal run modal_app.py::build builds it for sm_100a.
    • Update the status table and the blocked-on lists in examples/README.md.

    If the example still does not compile afterwards, that is a finding worth writing down — say what is still missing rather than leaving the README stale.

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:memory

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions