Repository navigation
GAPS.md: audit every claim against the source, and hold the landed half in a test (#65) - #72
Merged
Merged
Conversation
…lf in a test (#65) §3.2 read "Missing: everything column-wise, `prod`, `min`, generic `row_reduce`" for the whole of #6's life. Auditing the rest the same way — by reading each module, not the log — found four more entries describing a crate that no longer exists, three stale counts, and a work order whose sixteen rows were thirteen-sixteenths closed. Adds `tests/gaps.rs`: the symbols this file cites as landed, named inside a generic function that is never instantiated, so warp shuffles and TMA intrinsics are safe to name from a host test and a rename breaks the build. Absence cannot be asserted in Rust, so the *missing* half stays prose and gains a date instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #65.
GAPS.md§3.2 read "Missing: everything column-wise,prod,min, genericrow_reduce" for the whole of #6's life. Auditing the rest the same way — byreading each module rather than the log, which is the point, since no commit
message contradicts an entry like that — found four more sections describing a
crate that no longer exists, three counts that had drifted, and a work order
that was thirteen-sixteenths closed without saying so.
Claims corrected, with the source that contradicted each
prod,min, genericrow_reduce, and all shared-tile reductions"src/reg.rs:1665,1687,1713row_reduce/col_reduce/tile_reduceare generic overReduceOp;Add/Mul/Max/Minimpl it (:290-296); the twelve named wrappers are at:1751-1776. Only the shared-tile/vector half is still missing.src/reg.rs:1700,:165column_group_reduceis written — the three-shuffle butterfly over masks 4, 8, 16.sv) — Absent entirely"src/shared.rs:850-1039,src/ldst.rs:254,282,src/global.rs:414SharedVec<E, N>withat/get/set, four TMA paths, aTileBoximpl, andldst::load_vec/store_vec. Landed in #53, three merged PRs before this one.src/global.rs:443-660GlobalLayout<E, RANK>for rank 1–5,packed/strided,tensor_map::<T: TileBox>,check_driver_requirements.PanelMapis now a type alias forTensorMap(:677) andencode_bf16_panelsa five-line wrapper (:697). The prerequisite is discharged.col_map… not yet produced — that reduction is #6"src/reg.rs:1687,src/ldst.rs:254col_reduceproduces one andload_vecreads one out of shared memory.gh issue view 13(CLOSED); no map/fold anywhere insrc/shared.rsElementand that is bf16-only until #2"src/shared.rs:166,252;src/global.rs:69F32is anElement. Still fp32-only, but becauseGlobalRowsnames a*mut f32outright — the stated reason had expired.cargo check… automatically".github/workflows/{ci,cuda,gpu}.yml,CI.mddevice-tests/src/main.rs:4500load_tile/store_tilebands,ldmatrix, bothSharedVecranks,block_reduce, the reduction shuffles, the early-recycle store wait, the repeated-launch TMEM probe.#[cfg(test)]unit tests … all of them pure coordinate and pointer math"cargo testcargo test --features host" as the commandcuda-bindingsbuild script--features hostneedscuda.h; it fails on a stock machine. Plaincargo testis the laptop command,--features hostis a CI tier.device-tests/src/main.rstimed_ladder!wc -l src/*.rsgh issue listgh issue listnamed as the live version.Verified-still-true, so left alone: §1.3 (
Swizzle128BandBaseLdtmare stillthe sole impls), §2.3's reduction stores and prefetch (no
cp.reduceanywhere),§2.4's hardcoded cg2, §2.5, §3.3, §3.4's absent
transpose/swap_layout, §4'slcf-only pipeline, §5, and the cuda-oxide table (rev matches
Cargo.toml).Added issue pointers where a gap had one and the file did not say so — #14, #15,
#16, #42, #49, #51 — and marked the five that are filed nowhere.
The check
tests/gaps.rsnames every symbol the rewritten sections cite as landed, insidea generic function that is never instantiated. Nothing in it is
monomorphized, so warp shuffles,
stmatrixand TMA intrinsics are safe to namefrom a host test; the compiler checks the names and signatures exist and stops
there. Renaming an exported symbol fails
cargo testnext to the sectionclaiming it. One real
#[test]under it asserts theReduceOpidentities,which is the one §3.2 claim cheap enough to assert rather than name.
Deliberately not a framework: no registry, no macro, and adding a claim is
adding a line. Scoped to
reg/shared/ldst— the modules whose entries thisPR rewrote — and away from
src/sync.rsandsrc/global.rs, which other agentsare editing concurrently.
Absence is the half that matters and it cannot be checked: there is no way to
write "no second
FragmentLayoutexists". So the missing half stays prose andgains a date instead, and the header says which half is which.
Two findings for the record
modal_app.py::gapsno longer exists. GAPS.md §3.2 (Reductions) is stale from before #6 landed #65 suggests "a note pointing atthe
::gapsentrypoint"; it was retired at Block-scope reductions: the fold four warps need, and the fp32 Element under it #3 andmodal_app.py:219is nowonly a comment where it used to be.
examples/README.md:107still spells itas a command string. Not changed here — that file is next to code other agents
are editing — but it is the one place a reader would go looking.
src/but nottests/(modal_app.py:135), so tier2's
cargo test --features hostwill not seetests/gaps.rs. Harmless aswritten, since the file uses no host-gated item and tier 1 runs it on every
PR from a full checkout — but worth knowing before anyone puts a host-only
claim in there.
Verification
cargo fmt --all -- --check,cargo clippy --all-targets -- -D warnings,cargo test(74 lib + 1 gaps),RUSTDOCFLAGS=-D warnings cargo doc --no-deps— all clean locally.
modal run modal_app.py::buildpasses:cargo test --features hostis 84tests, and both kernel crates codegen for
sm_100a.No source file changed, so nothing this PR touches can affect a kernel.