Repository navigation
The jump tables were #219's after all, and the census that missed it is a gate (#225) - #229
Merged
Merged
Conversation
…is a gate (#225) Three readings of `regcount`'s jump-table census, each from a build that `_freshen` (#228) forced and whose four crates are seen to recompile in the container log, same image and same pinned nightly: 3ae07a8 #218, before the access ladder 0 of 309 bda3329 after #219, before #227 55 of 318 (9 shipped) 09beda9 main, after #227 0 of 319 #219 introduced every `brx` in this tree and #227 removed every one of them, which is the consumer's bisect exactly. #227 reported the opposite -- 51 already present at 3ae07a8, identical counts across its own fix -- from a comparison taken across the warm cache volume #228 later found serving stale builds. Both numbers are superseded. 3ae07a8 has no `AccessWidth` to match on at all, so zero is the only count that tree can produce. Half of #225's "necessary but not sufficient" survives and half does not. No GPU entry point mounts the cache volume (#226), so #227's B200 runs at then-main really were runs of the 55-table tree and those modules really did load. `shared_drain_quad` is the half that goes: it was added on the fix branch, after the fix had put both drains back on a three-case dispatch, so it has never carried a table and it is inside main's 0 of 319. Its doc said it demonstrated a JIT taking four of them; it demonstrated nothing of the kind, and now says so. So the census arms on the condition it set for itself. A kernel in the shipped set -- `examples/` plus `GATED_KERNELS` -- carrying a `brx` fails the run; probes are printed and do not, the way the local-memory depot's are. The table stays as the diagnostic. Watched in both directions: green at this branch (0 of 319) and red at bda3329's sources under the same armed `modal_app.py`, naming the nine shipped kernels.
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.
#228 found that the cargo-cache volume had been serving stale builds, and noted
in passing that a fresh
regcountat main reads zero jump tables where #227had recorded 55 unchanged. It left the before/after to whoever would take it on
verified-fresh builds. This is that, on three refs, and it inverts #227's
finding: the tables were #219's after all.
The three readings
Each through
_freshen, same image, samesm_100a, same pinned nightly, and ineach container log all four crates are seen to recompile (
Compiling ferro-kittens,device-tests,kittens-examples,kittens-experiments):brx3ae07a8bda332909beda9So #219 put every jump table in this tree there and #227 took every one of
them out — oxide-train's bisect, reproduced in ferro's own PTX, in both
directions. The 55 at
bda3329matches the day-one census exactly, which is thecontrol: that reading was always right.
Neither negative result #227 built its narrative on survives:
emits zero, and it could not emit anything else:
AccessWidthdoes notexist at
3ae07a8. The accumulator note says what #203 did, and the access ladder is a type the drains must cover #219 is the commit that made the ladder a type, and beforeit both drains dispatched on
access_width_bytes— three cases, which LLVMbranches — which is exactly the lowering The drains dispatch on the ladder's byte count again, and the jump tables were never this tree's (#225) #227 restored. The 51 was read across
the warm volume, before
_freshen.other side. 55 → 0; the fix moved the count by all of it, in the direction its
own MIR/
llcargument predicted.The fix in #227 was right, and right for the reason it gave. What was wrong
was the measurement it took of itself, and the story it wrote from that.
The
shared_drain_quadreconciliation, which splits#225's standing conclusion is "
brxis necessary but not sufficient", resting ontwo claims. One holds and one does not:
entry point in
modal_app.pymounts the cache volume — The cargo cache belongs on the CPU tiers, and the GPU's build is irreducible #226 measured that thecache loses on a GPU container — so every device run has always built from
source, stale window or not. The drains dispatch on the ladder's byte count again, and the jump tables were never this tree's (#225) #227's B200 runs at then-main (
bda3329) wereruns of the 55-table tree, and those modules loaded.
shared_drain_quad's four tables in one entry load fine" does not. Thatprobe was added on the fix branch, where the fix had already put both drains
back on a three-case dispatch. It has never carried a table:
regcountat thisbranch prices it at 96 registers on the same PTX the census keys from, and the
census reads 0 for all 319 entries including it. The reading that credited it
with four was the stale one.
So the shape it carries is the consumer's shape minus the construct the
consumer failed on. Its doc claimed the opposite in so many words and is
rewritten. It stays — it is still the only entry that instantiates every drain
at once, and a change that makes the ladder expensive again goes red here rather
than in a consumer's bisect — but as a standing check, not as evidence about a
driver.
The gate
The census set its own arming condition ("it arms into a gate when the shipped
set reads zero") and that condition is now met on two builds known to be fresh:
before the ladder existed, and at main.
_print_jump_tablesstill prints every tabled entry — the diagnostic isunchanged, and the
.branchtargetsexcerpt with it — and now raises when anykernel in the shipped set carries one: everything
examples/emits plus theGATED_KERNELSrows. Probes are printed and do not fail the run, for thelocal-memory depot's reason next door: a probe exists to measure a spelling, and
a spelling worth measuring may be one the library must not ship.
That is not a hole. Nine of
bda3329's 55 were shipped, four fromexamples/alone, so the #219 regression sits inside the gated set with room to spare.
Verification, in both directions
A gate nobody has watched fail is not a check, so it was run against the tree it
exists to reject.
Green at this branch —
scripts/modal-run regcount, exit 0, occupancy gategreen, depot report unchanged:
Red at
bda3329's sources under the same armedmodal_app.py— exit 1,after the full census table printed:
scripts/fmt --checkclean. Four CPU containers total; no GPU seconds.Also here
CI.md's tier-2 section said the census is a report "because the tables werealready there at An accumulator releases from one lane a warp, and the 512 arrivals it replaces measured as nothing #218". Both halves of that were wrong; it now carries the
three-ref table and says what the device tier's
shared_drain_quaddoes anddoes not show.