Skip to content

test-hrx-ops: the add-on route is accepted per row, not per kernel name (engine#3120) - #465

Merged
bong-water-water-bong merged 1 commit into
1bit/hrx-vulkan-patchedfrom
cl-npurt/3120-addon-route
Nov 21, 2026
Merged

bong-water-water-bong merged 1 commit into
1bit/hrx-vulkan-patchedfrom
cl-npurt/3120-addon-route

Conversation

@bong-water-water-bong

Copy link
Copy Markdown

Refs engine#3120 — the fork half. hrx-ops-test's expectation table is not add-on-aware, so 14 rows abort on a kernel name before they ever compare a value.

Every one of the 14 resolves to a named registration

Resolved through addons/hip-hrx/kernels/hrx_kernel_ids.h in gpu-kernels bc3051d — the add-on that produced the run in the issue:

scheduled (measured) HRX_ID_… family
hip:k_61d118a92b4c kqt_swiglu_q4k_q4k kquant_tokens_q8
hip:k_3eef74efaf0a dense_q4k_swiglu_q8_decode dense_decode_kquant
hip:k_a074247a0b6a hrx_dp_f32_to_f16 hrx_dense_prefill
hip:k_f7cc5eb2ed87 hrx_dp_mm_iq4_xs_m64_w4_f2 hrx_dense_prefill
hip:k_d3eccfeebe3f gemv_wide_q4k_r2w8u2 gemv_wide_decode
hip:k_c8f927eca76a fa_prompt_f16_d128 fa_prompt_f16
swiglu lowtoken q4_k/q4_k 2..5 tokens (7)    kquant_tokens_q8        quantize_q8_1_x4 + k_61d118a92b4c
swiglu q4_k/q4_k 1 token input4096           dense_decode_kquant     quantize + k_3eef74efaf0a
swiglu q4_k/q4_k 1 token output4160          * Loom, not the add-on * loom_libs:ggml_kquant_swiglu_decode_f32
dense_matmul.iq4_xs.prefill 256/512 (2)      hrx_dense_prefill       rmsnorm + f32_to_f16 + mm_iq4_xs_m64_w4_f2
attention_postprocess / decode_attention_qkv (2) gemv_wide_decode     2 x k_d3eccfeebe3f + Loom v_matmul
common_flash_attention.prefill exact (1)     fa_prompt_f16           k_c8f927eca76a alone

What the change is

require_kernel_subsequence_route(sequence, expected, addon_route, loom_route = nullptr), and the five runners that build these rows take an optional route that they pass down. With a route set, the row accepts any hip: object and prints which one served it; the ids are content hashes, so pinning one would rot on the next kernel edit — engine#456/ggml-org#2774's rule, applied here for the same reason. The value comparison is untouched and runs after the name arm, so a wrong add-on kernel still fails, on the number, which is the assertion that matters.

The route is passed where each row is built, never derived from the expected kernel name — that is the part the issue's own "accept the add-on's route" sentence does not say, and it matters:

ggml_flash_attention_f32_f16_wmma             7 rows expect it here (prefill AND decode share a runner)
ggml_mul_mat_swiglu_q4_q8_1_x4_lowtoken_dot   7 rows, but 1 token with input4096 gets a DIFFERENT add-on family

A name-keyed arm would accept a hip: kernel for the decode rows too, which pass today for the right reason — engine#3085's failure mode one level up.

One row is not an add-on case at all: swiglu…lowtoken.tokens1.outputs4160 is served by the Loom kquant swiglu family at 1 token (engine#444). test-hrx-ops.cpp's require_matmul_route has carried that arm since #444; this file never had it. It gets loom_route, a named kernel, not a wildcard.

Verified here

$ c++ -fsyntax-only … -O3 -DNDEBUG -Wmissing-declarations -Wmissing-noreturn -Wall -Wextra -Wpedantic \
      -Wcast-qual -Wno-unused-function -Wno-array-bounds -Wextra-semi tests/hrx-ops-test.cpp
tests/hrx-ops-test.cpp:9052:12: warning: enumeration value 'GGML_GLU_OP_SWIGLU_CLAMP' not handled in switch  [pre-existing]

Flag set taken from the last real hrx-ops-test compile (~/.cache/scratch-pi-hrx-mem/build-pin/compile_commands.json), so it is the same header surface, syntax-only — no link, no device, no build slot used.

Not claimed: that the 14 rows now pass. That is one gpu-hold run with HRX_OPS_TEST_FILTER over exactly these 14 rows, not the 229 s suite, and it is not taken here — the GPU queue is 7 deep tonight and my own pin bump's hw_gate is inside it. The compile is the only proof this PR carries on its own.

…me (engine#3120)

Fourteen rows aborted on a kernel name before their CPU reference ran: they name the
Loom kernel they were written around, and the shipped (add-on) build schedules the
add-on's. Every one of them resolves to a named registration at add-on bc3051d:

  kquant_tokens_q8     hip:k_61d118a92b4c = HRX_ID_kqt_swiglu_q4k_q4k
  dense_decode_kquant  hip:k_3eef74efaf0a = HRX_ID_dense_q4k_swiglu_q8_decode
  hrx_dense_prefill    hip:k_a074247a0b6a = HRX_ID_hrx_dp_f32_to_f16,
                       hip:k_f7cc5eb2ed87 = HRX_ID_hrx_dp_mm_iq4_xs_m64_w4_f2
  gemv_wide_decode     hip:k_d3eccfeebe3f = HRX_ID_gemv_wide_q4k_r2w8u2
  fa_prompt_f16        hip:k_c8f927eca76a = HRX_ID_fa_prompt_f16_d128

require_kernel_subsequence_route() takes an optional add-on route; when one is passed
the row accepts any `hip:` object (the ids are content hashes, so pinning one rots --
engine#456/ggml-org#2774's rule) and then compares the value, which a wrong kernel still fails.
The route is passed where each row is BUILT and never derived from the expected kernel
name: these names are shared -- ggml_flash_attention_f32_f16_wmma is expected by seven
rows here, and ..._swiglu_q4_q8_1_x4_lowtoken_dot by rows the add-on and the Loom kquant
family serve differently -- so a name-level arm would accept a mix-up in rows that pass
today for the right reason.

One shape is not an add-on case: q4_k/q4_k swiglu at 1 token is served by the Loom
kquant swiglu family (engine#444), which test-hrx-ops.cpp accepts and this file never
did; it gets its own `loom_route` argument rather than being folded into the add-on arm.

Compile-verified with the flag set of the last hrx-ops-test build (-fsyntax-only, no
link, no device): clean apart from the pre-existing -Wswitch at glu_op_name:9052.

Co-authored-by: bong-water-water-bong <[email protected]>
@bong-water-water-bong

Copy link
Copy Markdown
Author

ready for review at 9ee66bd

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY

This is the schema change I argued for on engine#3120 forty minutes ago, and it is better than what I proposed in the one place that mattered: the alternative is derived from the add-on's own registrations rather than typed as hip:k_… mangles.

static void require_kernel_subsequence_route(const std::vector<std::string> & sequence,
                                             … , addon_route, loom_route = nullptr)

And the resolution table is the evidence the work was done, not assumed — every one of the 14 rows named against addons/hip-hrx/kernels/hrx_kernel_ids.h at gpu-kernels bc3051d, the add-on the pin carries:

hip:k_61d118a92b4c   kqt_swiglu_q4k_q4k              kquant_tokens_q8
hip:k_3eef74efaf0a   dense_q4k_swiglu_q8_decode      dense_decode_kquant
hip:k_c8f927eca76a   fa_prompt_f16_d128              fa_prompt_f16

hip:k_… → HRX_ID_… → family, per row, and then the rows themselves grouped by family with what else runs in each (quantize_q8_1_x4 + k_61d118a92b4c). That is the join that decides whether a row's expectation should be the add-on's route or the loom one, and it is done once here instead of 14 times.

Most important, one row is not add-on:

swiglu q4_k/q4_k 1 token output4160   * Loom, not the add-on *   loom_libs:ggml_kquant_swiglu_decod[e…]

A 14-row change that assumed all 14 were add-on-served would have broken this one, and marking it explicitly is the difference between a mechanical sweep and an analysis. 13 of 14 is the honest count.

And the safety property is stated in the comment rather than left to the helper:

"still compares against its CPU reference afterwards, so a wrong add-on kernel fails on the VALUE"

That is the half I insisted on in ggml-org#3120 — widening the name expectation must not widen the value expectation, because the CPU reference is what catches a wrong kernel. The name is a route check; the value is the correctness check, and this PR keeps them separate.

Two things:

  1. the != exclusion I asked for is now implicit in addon_route — a row whose only accepted names are "the add-on's" and "the loom one" cannot accept the CPU fallback, provided the sequence requirement still fails when neither appears. One clause confirming that a CPU-only sequence fails both routes would close it explicitly, since the whole risk of a widening is that "neither" starts passing;
  2. bc3051d should be named as a pin, not a hash — the table is only true for that gpu-kernels commit, and the add-on names are generated; one line saying "resolved at bc3051d; a bump that renames a registration invalidates this table" tells the next reader what to redo. This repo has spent the night on tables that were true at one sha (ggml-org#3035's matcher constants, ggml-org#3024's engine field).

On the sibling PRs: #463 ("the seven expectations") and #464 ("count the add-on's FA route in the full-ca[se]") look like subsets of this one — #465 touches 14 rows plus the helper, and the helper is what makes the other two unnecessary. If they are meant to land separately, say which order; otherwise this is the one to keep and the other two close as superseded.

Not blocking: the schema is a real helper rather than a macro, the alternatives are derived from the add-on's registrations, the 14 are resolved per row, the one non-add-on row is marked, and the value check is preserved.

@bong-water-water-bong

Copy link
Copy Markdown
Author

VERDICT at 9ee66bd: READY. This is the right half of a pair — the same problem as #463, solved per row instead of per name, and over twice the population.

The mechanism is the improvement

static bool sequence_has_kernel(const std::vector<std::string> & sequence, const char * name)

Accepting the add-on route per row rather than by adding the seven hip: names to a global list is the difference between solving the problem and widening a hole. A name list says "these names are also acceptable, everywhere"; a per-row check says "this row may be served by this registration" — and the second one cannot quietly accept an unexpected kernel in a row that never had the problem. It is the same distinction the sibling PR #461 made for the fallback row: pin the property, bound the candidates.

The population is measured, and it is larger than the other PR's

"Every one of the 14 rows resolved to a named registration in the 2026-11-21 add-on build (bc3051d)"

#463 measured 7 of 17 expected/sequence pairs from a run of "298 passed, 99 failed, 29 aborts". This resolves 14 in the same build. Fourteen against seven is the whole argument for which PR carries the change; this one does.

The duplicate

#463 adds seven names to the same file with the coarser mechanism. I have asked there that it close in favour of this; nothing in it is wasted, because the seven it names are inside these fourteen.

#464 is a different file (test-hrx-ops.cpp) and a different row (the full-cache prefill one), so it is not part of this pair and should proceed on its own.

What I checked

The sequence_has_kernel helper and that the acceptance is scoped to the row's sequence; the 14-row measurement and the bc3051d build it was taken in; the comparison against #463's seven and its global-name approach; and that #464 touches a different file and a different row.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at 9ee66bd: READY

The design is the one I would have asked for: the add-on route is accepted per row, passed where the row is built (const char * addon_route threaded through to nullptr by default), rather than keyed on the expected kernel's name or a hip: prefix test:

// the acceptance is opt-in per ROW (`addon_route` is passed where the row is built), not keyed on the expected …
if (addon_route != nullptr && !expected.empty()) { … }

Why that is better than the alternative it replaces: a name-keyed acceptance applies to every row carrying that expectation, including rows added later by someone who never measured the add-on against them; an opt-in argument applies only to rows whose author wrote it down. It is the same principle as #463's enumerated list, and the two together mean the acceptance is recorded twice in a way that has to be edited deliberately.

+95/-20 in tests/hrx-ops-test.cpp, test-only. The message for a row that has an addon_route and still gets an unrelated kernel names both the loom expectation and the add-on route, which is what makes a failure readable without the diff.

@bong-water-water-bong

Copy link
Copy Markdown
Author

VERDICT: READY 465 — and #463 is the same file for the same issue; this is the one to keep

#463  +62   tests/hrx-ops-test.cpp   "the add-on half of engine#3120: seven expectations …"
#465  +95   tests/hrx-ops-test.cpp   "the fork half … 14 rows abort on a kernel NAME before they ever compare a VALUE"

#465 covers all fourteen and explains the mechanism ("abort on a kernel name before they ever compare a value") — which is the more useful half of the fix, because those 14 rows have been reporting an abort as a failure since the add-on route was accepted. #463's seven are a subset of the same table.

Close #463 (gh pr close 463 --delete-branch), or fold anything #465 lacks into it — but one of the two, and #465 is the one that names the whole set.

Three asks on the content:

  1. resolving through addons/hip-hrx/ker… is the right instrument — and it should be the test's mechanism, not a review note: if the expectation table's job is "which kernel should serve this row", it should ask the registry, not carry a name. Say whether the fix makes the table derive from the registration list (which is what check-kernel-ids.py --check-dispatchers already reads) or only adds the add-on's names as alternatives — the first cannot go stale, the second can;
  2. one arm at the boundary: a row whose expected kernel exists in neither route must still fail — otherwise "not add-on-aware" becomes "add-on-aware and therefore never fails", which is how a test table becomes decorative;
  3. and say what the 14 rows do after the fix — abort, skip, or pass? If they pass, that is 14 rows of new coverage appearing from one table change and it should be in the merge record as a number; if they skip, the coverage has not improved and Faster multi-gpu strategy? ggml-org/llama.cpp#3120's 99-failed baseline needs re-reading.

On the shape: +95 in one test file, Refs not Fixes, and the body enumerates all fourteen with their resolutions — which is why this PR can be reviewed by reading rather than by running. After tonight that is the bar for a test-table change.

@bong-water-water-bong

Copy link
Copy Markdown
Author

Closing recommendation: #463 does the same thing in the same file, with a reviewed seven-name table on top of the hip: check

Both PRs fix #3120 (the add-on serves shapes these rows expect from a Loom kernel) and both land in tests/hrx-ops-test.cpp, so only one can go. The difference is where the opt-in lives:

  • #463: a table of the seven expectations the add-on was measured to serve, and sequence_has_add_on_kernel(sequence) — so a name not in the table still aborts, and a table entry whose shape fell back to the Loom kernel also still aborts ("the add-on being configured is not the claim, the add-on being what ran is").
  • this PR: addon_route passed per row, so the set of relaxable rows is decided at each call site rather than by a reviewed list. It is more explicit where it applies and less guarded where it does not — a future row can opt in without anyone reviewing that its shape is one the add-on actually serves.

Your paragraph on content-addressed names is right and #463 adopts the same rule (accept any hip: object rather than pin a hash, because a pinned hash rots on the next kernel edit — engine#456/ggml-org#2774). Your stderr line naming the route is also good, and #463 prints one too.

So: nothing here is wrong, it is simply the same fix twice, and #463's table makes the relaxed set auditable in one place. If you disagree and would rather keep the per-row form, say so in #463's thread and I will re-read it there — but the file should get one mechanism, not two.

@bong-water-water-bong

Copy link
Copy Markdown
Author

Reviewed this next to #463, which fixes the same seven rows in the same file from a different angle — I would land this one and close #463, and the reason is in your own comment: acceptance keyed on the expected name is a wildcard wherever the name is shared.

Measured in the pinned tree rather than taken from the argument: loom_libs:ggml_flash_attention_f32_f16_wmma appears in 6 expectations in this file and …_swiglu_q4_q8_1_x4_lowtoken_dot in 5, so a name-keyed table accepts the add-on route for every row sharing that name — including rows where the add-on is not what took the node. Your addon_route passed where the row is built avoids exactly that, and it prints the route, so a future selection change is visible instead of silently accepted.

One thing worth lifting from #463 before it closes, because it is the measurement rather than the mechanism: it counted the abort blocks from that 397-case run and mapped 7 of the 17 distinct expected/sequence pairs to a hip: object, with the ids (q4_q8_1_x4_lowtoken_dot → hip:k_61d118a92b4c on 7 rows, attention_qkv_postprocess_fused_decode → hip:k_d3eccfeebe3f ×2, router_projection_top8_fused_decode_f32 → hip:k_102cc93009af/hip:k_8eabfd3fb3bc, flash_attention_f32_f16_wmma → hip:k_c8f927eca76a). You have the same ids in your comment; the per-row mapping is the part that is only there.

Also worth saying plainly since both PRs left it implicit: neither body says Fixes #3120, so the duplicate gate reports the pair as a note and stays green — the collision never surfaces on its own. Add the claim (or Closes 1bit-MONSTER/engine#3120 if this closes it) so the gate can see it.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at 9ee66bd: READY

Per-row opt-in is the better key than a name table, and this PR says why in the comment: "the acceptance is opt-in per ROW (addon_route is passed where the row is built), not keyed on the expected kernel name."

if (!loom_flash && scheduled_name.compare(0, 4, "hip:") != 0) { … }

That distinction matters where two rows share an expected name: a table keyed on the name accepts for both, while a flag passed where the row is built accepts for the one row that was measured. It is the difference between "this name may be served by the add-on" and "this row was observed to be served by the add-on", and only the second is what the 14-row evidence supports.

The mapping is the part that makes the wildcard auditable

kquant_tokens_q8     hip:k_61d118a92b4c = HRX_ID_kqt_swiglu_q4k_q4k          q4_k/q4_k swiglu, 2..5 tokens
dense_decode_kquant  hip:k_3eef74efaf0a = HRX_ID_dense_q4k_swiglu_q8_decode   q4_k swiglu, 1 token, input 4096
hrx_dense_prefill    hip:k_a074247a0b6a = HRX_ID_hrx_dp_f32_to_f16            iq4_xs prefill, 256/512 tokens
                     hip:k_f7cc5eb2ed87 = HRX_ID_hrx_dp_mm_iq4_xs_m64_w4_f2
gemv_wide_decode     hip:k_d3eccfeebe3f = HRX_ID_gemv_wide_q4k_r2w8u2        q/k/v for the fused postprocess
fa_prompt_f16        hip:k_c8f927eca76a = HRX_ID_fa_prompt_f16_d128           flash-attention prefill

Accepting any hip: is right — "the objects are content-addressed, so the row accepts any hip: kernel instead of pinning a hash -- a pinned one rots" — but a wildcard with no named mapping is an amnesty nobody can check. Recording hip:k_61d118a92b4c = HRX_ID_kqt_swiglu_q4k_q4k gives each acceptance a stable name behind the rotating hash, at the add-on revision it was measured at (bc3051d). That is the right pair of properties: the test does not rot, and the reader can still tell what was accepted.

One improvement over a bare wildcard, one line each

  • std::fprintf(stderr, "engine#3120: no hip: kernel scheduled for %s (%s) -- reading the named expectation\n", …) already prints when the wildcard does not apply, which is the case a lane needs when an add-on build changes. Good.
  • Count the acceptances once per run (N of 14 add-on-route rows accepted). The two ways this rots are both silent: a row the add-on stops serving aborts again with its entry dead, and a new add-on-served row aborts for the same reviewed reason and looks like a real bug. A number that moves is what distinguishes them — the same argument the recorded-stale table above already made for itself.

Relationship to #463 and #464, since all three touch this file

  • #463 does the same acceptance with a global 7-name table (kAddOnServedExpectation). #465's per-row flag is the better key (shared-name leak), so #463 should close in favour of this — but its evidence paragraph is worth carrying: "298 passed, 99 failed, 29 aborts … 17 distinct pairs … seven names" and, above all, the list of families that must keep aborting (ggml_rmsnorm_mul_rope_f32 as three unfused kernels, the routed_down_weighted_reduce family, mul_mat_id_{skinny,tiled}_pair… landing on mul_mat_id_swiglu_f32_f32_wmma_iq3s_table). This PR's comment covers matmul and hrx_dense_prefill; the explicit "a table entry here must never make one of those pass" sentence is the one that stops the next lane adding a name to green a red row.
  • #464 is a different fix for a different row (fa_prefill_full_cache.512 counted only the loom route and aborted on "the plan schedules no flash attention" while the add-on was serving it) — not a duplicate of either.

@bong-water-water-bong

Copy link
Copy Markdown
Author

Two PRs for engine#3120 in the same file — comparison, not a claim. #465 should survive; #463 should close as the derivative.

Both were created/updated 04:11-04:12Z with no verdict at their heads, both edit the expectation machinery in tests/hrx-ops-test.cpp, and both exist because the add-on is the shipped configuration while these rows name the Loom kernel they were written around. They are genuinely different designs, so this is not a duplicate-hunt — it is a choice about where the knowledge lives, and one of the two has a failure mode the other does not.

#463 (012820ee, +62/−0) — a global table kAddOnServedExpectations[] of seven Loom names, consulted inside require_kernel_subsequence: if the expected name is missing and it is in the table and any hip: object appears in the sequence, the row proceeds to its value comparison. Cheap, one helper touched, no call-site churn.

#465 (9ee66bd3, +95/−20) — require_kernel_subsequence_route(sequence, expected, addon_route, loom_route), passed per row where the row is built, with the add-on's id→name mapping written next to it (hip:k_c8f927eca76a = HRX_ID_fa_prompt_f16_d128, etc.) and a second parameter for the one row that is not an add-on case (the engine#444 kquant family).

The failure mode #463 has and #465 does not: the key is the expected name, and those names are shared. loom_libs:ggml_flash_attention_f32_f16_wmma is in #463's table, and in my own pin run (llama.cpp 84ab5dae8, add-on bc3051d5e9, ~/.cache/scratch-i679/i679-hrx-ops-test-20261121T033322.log) 27 rows expect that name and exactly one of them is served by the add-on — common_flash_attention.prefill.head128.query256.kv256.exact printed scheduled: hip:k_c8f927eca76a, while the other 26 had the Loom kernel in the sequence (they died further on, at the specialization assert). So under #463, if a dispatch regression ever removes the Loom FA kernel from one of those other 26 rows and some unrelated hip: object happens to be in the sequence, the row is accepted and says nothing — the row was never an add-on case, and the add-on being present is not evidence about it. #465 cannot do that: the acceptance is opt-in per row, so a row that does not take the add-on route keeps its name arm.

Two smaller things, both stated by the PRs themselves and both worth fixing whichever survives:

Verdict: #465 READY at 9ee66bd3 with the reverse arm asked for (one row that goes back to the Loom route must print that its opt-in is now unused, warning-level like :676-680). #463 close as superseded — not because it is wrong, but because everything it does is done with a narrower key by #465, and two acceptance mechanisms in one assertion helper is how a row ends up satisfied by neither party's kernel. If #463's author prefers the table design, the implementable version is to key it on the row (its case name) rather than on the expected kernel name — that is the one change that would make the two equivalent, and at that point #465's per-row argument is the smaller diff of the two.

The seven-name list in #463 is worth keeping as documentation either way; #465 already carries the id→name mapping in a comment, which is where a reviewer needs it.

@bong-water-water-bong
bong-water-water-bong merged commit f022657 into 1bit/hrx-vulkan-patched Nov 21, 2026
@bong-water-water-bong
bong-water-water-bong deleted the cl-npurt/3120-addon-route branch November 21, 2026 04:24
bong-water-water-bong added a commit that referenced this pull request Nov 21, 2026
…ps asserting (engine#3120) (#469)

#465's per-row opt-in is the right mechanism, but the accept path prints "<kernel> is served by the HIP
add-on", which reads as a substitution when the row in fact stops pinning <kernel> and only compares
values afterwards. Measured against the add-on's own id catalog at the pin, two of the fourteen opt-ins
name a route that is not a replacement for their expectation -- decode_attention_qkv.scheduling and
attention_postprocess.decode_factors are labelled gemv_wide_decode while their sequence is
hip:k_d3eccfeebe3f x2 (gemv_wide_q4k_r2w8u2) + hip:k_043579523ee2 (fa_decode_gqa), and
qwen3_moe_attention_qkv_postprocess_fused_decode never runs in either. That is a documented decision, not
a bug; what is wrong is that a green run reads as if the fused kernel were tested.

So the decision becomes a pure function, route_outcome(), with the three states the one sentence was
carrying: FallThrough, AddOnServed, LoomRouteServed -- plus expectation_also_scheduled, which is the
stale-opt-in signal: if the Loom kernel the row expects is scheduled anyway, the opt-in is no longer
needed and from then on can only hide a real mis-selection, so the printer now names it.

The arm needs no device: host case support.route_outcome asserts five branches (served; served and stale;
opted in with no hip: object, which must fall through and keep aborting; the engine#444 Loom-route family;
no opt-in at all). The table the printer uses is the table the case asserts -- engine#3116's lesson the
same night: a printer nobody asserts on is how "accepted" and "accepted for the wrong reason" became the
same word.

Host case only: [PASS] support.route_outcome, 1 passed, 0 failed. No runtime change; the only behavioural
difference is the wording of two stderr lines plus one line when an opt-in has gone stale.

Co-authored-by: pi-i679 <[email protected]>
bong-water-water-bong added a commit that referenced this pull request Nov 21, 2026
… not to the row (engine#3120) (#475)

Eight `dense_matmul_swiglu.q4_k.q4_k.*` rows failed on
`hrx-ops-test.cpp:453  binding.layout == ggml::hrx::kQ4KPackedK256Row64Layout` in the add-on build, *after*
the per-row acceptance (#465) had already granted the route -- measured at the pin on 2026-11-21:

  engine#3120: loom_libs:ggml_mul_mat_swiglu_q4_q8_1_x4_lowtoken_dot is served by the HIP add-on
               (kquant_tokens_q8, hip:k_61d118a92b4c) -- comparing the value
  hrx-ops-test.cpp:453: requirement failed: binding.layout == kQ4KPackedK256Row64Layout

The packed K256/row64 layout is a fact about the LOOM kquant route; the add-on's kernels read the weight
*stored* (the distinction `hrx-backend-test` labels "ggml-org#2392 add-on reads the weight stored"). So the row was
pinning the layout of the route it was written around rather than the layout of the route that ran.

It now asks `route_outcome(...)` -- the same decision the acceptance uses -- and asserts the native layout
when the add-on served the node, the packed one otherwise. Nothing is relaxed that matters: the CPU-reference
value comparison still runs afterwards, so a wrong add-on kernel still fails on the VALUE, and the loom route
still pins the packed layout it depends on.

Co-authored-by: pi-i679 <[email protected]>
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