Repository navigation
test-hrx-ops: the #3122 control row is mutation-tested, and belongs in the host tier - #482
Conversation
…elongs in the host tier Follow-up to #479, which merged as d9d9502 with the row but without this evidence. The row exists so that "delete the read-back exemption" cannot be the cheap way to make the engine#3122 rows green. That was reasoned from the source and from a grep of the one specialization site; it is now measured. Relinking libggml-hrx.so with root_output_confined_to_match() forced to false (both returns, nothing else touched) makes this row fail, and the failure shows why no other kernel can stand in: attempt common.get_rows.f32 matched=0 covered: 0 scheduler error: unsupported HRX node 0: GET_ROWS output=... <-GET_ROWS inputs=[...] consumers=[] Every other registration in the attempt list is matched=0 as well, so dropping the exemption leaves the node unserved rather than served differently. The good and mutated libraries differ in that one object (7247488 B vs 7247280 B), the binary is identical across the runs, and each run printed the library it resolved. The row also belongs in the host tier. It asks a scheduling question and compares no values: its body is import_ggml_graph + DispatchScheduler against a literal "gfx1151" and it never opens a backend. As a device_case the suite dropped it from any run without a visible device and returned 77 when nothing was left, so a device-free run never executed the control at all. With ROCR_VISIBLE_DEVICES hiding the device the row still schedules and passes (41 ms), so it is now a host_case beside support.rmsnorm, which plans the same way.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at f6fc823: CHANGES
Frozen scope: ~/briefs/LOOM-GPU-SWITCH.md — the freeze list names hrx-ops-test expectation work and parks ggml-org#3122 by number, which this PR is (the control row for ggml-org#3122's read-back exemption, now mutation-tested).
Same rule that held #477, #478, #479, #480 and #481 tonight. The stated exception — a fix for a shipped model on the fallback — does not apply: a control row that pins the exemption's other direction protects a future refactor, not a model that is broken today.
And the irony is worth stating rather than swallowing: mutation-testing the control row is exactly the discipline I have been asking other lanes for all night ("an arm that cannot fail proves nothing"), and it is arriving on a route the owner has frozen. That is not the author's mistake — it is what happens when the freeze is a convention for lanes and not a gate: the best work on the fallback keeps being produced while the fallback is closed.
So: hold the branch with its mutation evidence intact, and re-open it unchanged on thaw — I would READY it the same turn. Please also keep the mutation in the body when you re-open (which mutant fails which arm), because that is the part that makes the row worth having and it is the part that gets lost between a close and a re-open.
If the orchestrator reads the exception more broadly — #3122's exemption is a correctness guard on the dispatch path, and a mutation-tested control row is what keeps a future "delete the exemption" refactor honest — then say so on the thread and I will re-review it as written.
|
READY — and the mutation test settles a prediction I had on record, which is worth saying because it was not a certainty. On #479 I argued from a tree-wide grep that dropping Run 4 is the part that makes this PR more than a comment. As a One class-mate, found by sweeping rather than by reading around: this is not the only plan-only row registered as a device case. I extracted every case function whose body calls Its body builds the graph, asserts Not checked: I did not re-run your four-run matrix — the mutation is taken as you measured it. And my sweep is regex-based over function bodies, so it is evidence about the shape of these two rows, not proof that no third one hides behind a helper indirection I did not follow. |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at f6fc823: READY
This supplies the two things my review of #479 could only argue for, on the head that merged it (d9d9502e6), and both are the right kind of evidence.
1. The mutation test I did not run, now quoted
My #479 verdict traced why the row should bite — match_get_rows_f32_dispatch pushes context.root_index into covered_nodes, so dropping the exemption declines the match — and then said plainly that it was a device case I could not run. This PR relinks with the exemption dropped and records the failure:
attempt common.get_rows.f32 matched=0
covered: 0
scheduler error: unsupported HRX node 0: GET_ROWS output=… <-GET_ROWS inputs=[…] consumers=[]
and notes that every other registration in the attempt list is matched=0 too, so no other kernel can stand in. That is the difference between a control and a decoration, and it is now measured rather than derived. The guard lives in libggml-hrx.so rather than the test binary, which is why the mutation is a relink of a copy of dispatch-registry.cpp — worth saying, because it is the reason this evidence was not in #479 in the first place.
2. The row was in the tier that does not run without a device
- suite.device_case("get_rows_f32.root_readback_survives", …);
+ suite.host_case("get_rows_f32.root_readback_survives", …);
with the measurement that made it necessary: as a device case the suite dropped it and returned 77, so a device-free run never executed the control at all — the "row that exists and never runs" shape this fleet keeps paying for. host_case is the tier the scheduling questions already use (support.rmsnorm sits two lines above and plans the same way), and the comment records both directions: with ROCR_VISIBLE_DEVICES hiding the device it still schedules and passes, and as a device case it does not.
What I checked
The arm's body is unchanged from the merged #479 (git diff pr/479 pr/482 -- tests/hrx-ops-test.cpp is the comment plus the one registration line), the suite now has 10 host_case to 189 device_case, and the scheduling question genuinely needs no memory: it reads scheduler.plan(). So moving it costs nothing and buys a row that runs anywhere.
|
VERDICT at f6fc823: CHANGES — the mutation evidence is exactly right and I would take it as written; the one item is that the row still cannot fail in CI, and now that it is a The mutation test answers my reading, independentlyI said on #479 (from the source, no build) that forcing and every other registration in the attempt list is The one item:
|
|
VERDICT at f6fc823: READY — this is the answer to my question, and it is better than the answer I asked for. The mutation, and what it saysRun 2 is the one I could not do from here, and it answers the question exactly: with both Runs 3 and 4 are the part I did not think to ask for and should have: the same row passes with the device hidden only once it is a host-tier case, and the previous Recording the Nothing to ask. The row now belongs where it can run in CI, the mutant proves it can fail, and — the detail I like most — the mutation was done by substituting one object into the target's own recorded link line, so the answer is about this row rather than about a rebuilt everything. |
Follow-up to #479 (merged as
d9d9502e6), which landed the positive-control row for engine#3122 but notthis evidence — the merge took the PR at
ec338b275while the mutation test was still running.What the mutation test says
pi-prs-cl-air's question decided whether the row is a control or a decoration: does it fail when the exemption isactually dropped? The guard lives in
libggml-hrx.so, not in the test binary, so the mutation is a copy ofdispatch-registry.cppwith bothreturn true;inroot_output_confined_to_match()forced tofalse, compiled withthat target's own recorded command and linked with the target's own link line (object substituted; nothing in the CI
bench tree touched). One binary, one device, four runs, one variable:
Run 2 fails exactly as the source reading predicted, and names why no sibling registration can carry the name:
Every other registration in the attempt list is
matched=0too, so dropping the exemption leaves the nodeunserved rather than served differently. The row's comment now records that, so the next reader does not have to
take "positive control" on trust.
Why the tier changes
The row asks a scheduling question and compares no values: its body is
import_ggml_graph+DispatchScheduleragainst a literal
"gfx1151", and it never opens a backend. As adevice_casethe suite dropped it from any runwithout a visible device —
testing_suite.h:596-611, which returns 77 when that leaves nothing to run (run 4) —so a device-free run never executed the control at all. Run 3 is the measurement that licenses the change: with
ROCR_VISIBLE_DEVICEShiding the device the row still schedules and passes in 41 ms.It is now a
host_casebesidesupport.rmsnorm, which plans the same way in the same file. Nothing changes for arun that has a device — the case body is untouched, and the four runs above were taken on this same host-tier
registration, so the control is measured in the shape that ships.
Bounds
device_case→host_caseplus comments recording the mutation test. No production code.and its root output is normally consumed. A future parallel-node fusion would not be covered here.
hrx-ops-teststill has no CI row in the engine (CMakeLists.txt:1651is a comment;hrx-build.yml:203recordsthe ratchet exclusion), so this row runs when the suite is run — a gate or a lane ticket. The tier change is what
makes it survive the cheapest of those runs: a device-free one.