Skip to content

rescale_probe hands the MMA its accumulator halves as the tiles they are - #204

Merged
feitreim merged 1 commit into
mainfrom
fix/rescale-probe-typed-mma
Aug 6, 2026
Merged

feitreim merged 1 commit into
mainfrom
fix/rescale-probe-typed-mma

Conversation

@feitreim

@feitreim feitreim commented Aug 6, 2026

Copy link
Copy Markdown
Owner

#198 (the STTM-into-MMA probe) and #203 (the typed TMEM/MMA surface) each merged green and composed into a compile error on main: the probe was written against the untyped API #203 removed, and the two diffs never touched the same line, so git saw no conflict.

The fix is the mechanical sweep #203 applied everywhere else: alloc_block::<COLUMNS> / dealloc_block::<COLUMNS>, the two [128, 64] MMA halves expressed as split_columns::<TILE>() and columns_right(TILE), and the MmaShape argument deleted because the tile now carries the shape. Same instructions, same launch geometry, no semantic change to the case.

Verified: cargo clippy --all-targets on device-tests clean (0 errors, via local CUDA_TOOLKIT_PATH typecheck), scripts/fmt --check clean. Actions is down (GitHub incident since 15:22Z); the Modal ladder (build, regcount, device_tests, examples) runs on main immediately after this merges, standing in for CI.

#198 and #203 each merged green and composed into a build error: the STTM
probe was written against the untyped MMA surface (#198), which #203 removed.
The probe now speaks the typed one — alloc_block::<COLUMNS>, the two [128, 64]
halves via split_columns/columns_right, and the shape argument gone because
the tile is the shape. Same instructions, same launch, no semantic change.
@feitreim
feitreim merged commit a961973 into main Aug 6, 2026
feitreim added a commit that referenced this pull request Aug 6, 2026
…ent after it (#205)

#204 adapted rescale_probe to the typed MMA surface and reached for
split_columns to narrow the accumulator — but split_columns carves the
segment *after* self (its own test says so in its name), so both MMAs wrote
past the 128-column allocation and the drains read a segment nothing wrote.
The case's self-attributing arithmetic caught it: every arm wrong at a
multiplier naming no term, compounding x16 an arm as each rescale scaled the
previous arm's leftovers. Typed with from_raw at the base, as the untyped
.raw() call always meant.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant