Repository navigation
Closed
Labels
Description
We have four TMA load paths and zero stores.
| ThunderKittens | ferro-kittens |
|---|---|
load_async |
tma_load, tma_load_at, tma_load_2d, tma_load_2d_multicast_cg2 |
store_async |
— |
store_add_async, store_min_async, store_max_async |
— |
prefetch |
— |
store_async_wait, store_commit_group, store_async_read_wait |
— |
Any epilogue that wants to write a tile out currently has to go through whatever the calling kernel hand-rolls.
Upstream support at the pinned rev (b099f64) — partially available:
cp_async_bulk_tensor_{1,2,3,4,5}d_s2g— plain stores, all ranks. Available.cp_async_bulk_commit_group,cp_async_bulk_wait_group,cp_async_bulk_wait_group_read— the commit/wait ops. Available.- Reduction stores (
cp.reduce.async.bulk.tensor) are absent. Noadd/min/maxvariants anywhere incuda-device. - Prefetch is absent.
So plain store_async plus the full commit/wait surface is straightforward. store_add_async — the one that makes split-K and multi-CTA reduction epilogues cheap — needs a ptx_asm! intrinsic written here, or an upstream contribution to cuda-oxide. ldst.rs already uses ptx_asm! for stmatrix, so there is precedent either way.
Suggest: plain stores and commit/wait in the first pass, reduction stores tracked separately once we know whether upstreaming is preferable to a local intrinsic.
Depends on #8.
Activity
feitreim commentedon Jul 27, 2026
Acceptance: update
examples/as part of closing this.Both
softmaxandlayernormend with a TMA store.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:
GAPfence inexamples/src/that this issue removes the need for, and replace it with the real API.aspirationaltocompiles: flip its header, take it out of its feature gate, and confirmmodal run modal_app.py::buildbuilds it forsm_100a.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.
Shared to register load: ldst::load_fragment (#33)
SwizzledChunks spans stacked subtiles (#35)
examples: the reductions, and what is left after #5 and #6
Reductions: generic row/column/whole-tile folds over a ReduceOp (#37)
TMA store path, and softmax runs (#41)
examples: the band loop is a call now, in all four kernels
Composed movers: a whole [M, N] band, both memories, both directions (#…
examples: the scalar broadcasts are the real API now
Scalar-operand maps: scale, shift, and a free rsqrt over the existing…