Repository navigation
ggml-hrx: fix the PAD param dump so the tree compiles, and run test-hrx-ops case by case (engine #444) - #127
Merged
bong-water-water-bong merged 2 commits intoOct 23, 2026
Conversation
op_params_json() is a std::visit over OpParams with an `if constexpr` chain and no final `else`. ba64834 ("ggml-hrx: PAD parameters match the kernel; source strides; circular flag", PR #114) added PadParams to the variant without adding a branch here, so the chain falls off the end for PAD and the lambda - whose call operator is implicitly constexpr - is an error: graph-diagnostics.cpp:184: error: no return statement in 'constexpr' function returning non-void That is fatal under GCC 15 and under clang alike, so the tree has not compiled with -DGGML_HRX=ON since #114. Nothing caught it because the engine's CI and hw-gate take cmake/hrx.cmake's public-binary-drop path, which does not compile this tree at all. Dump the pad fields and the circular flag with the other kind-tagged parameters, and accept them back in parse_op_params() so a dumped plan round-trips. Co-Authored-By: Claude Fable 5.1 <[email protected]>
test-hrx-ops had one fail-fast main(): ~157 calls and loops around them, so the first failed REQUIRE ended the run and no later case ever executed. This moves it onto tests/testing_suite.h, the runner test-hrx-buffer already uses, which gives every case its own process, a name, and a per-case PASS/FAIL line plus real totals. - 239 cases: 2 host cases (the support-predicate and alternate-value-lookup checks, which need no device) and 237 device cases. The loops are unrolled so each case carries its shapes in its name (`dense.q4_k.mul_mat_f32_f32_wmma.2.128`, `swiglu.q4_k.q4_k.…_prefill_wave32.256.4096.geglu`), which is what makes a red row identifiable without reading a line number. - one job: every device case drives the GPU, so they run one at a time. - without an HRX device the device cases skip as before (`-` no device), the two host cases still run. - the expectation names inside the cases are untouched here; the ones this pin schedules differently are the next commit. Co-Authored-By: Claude Fable 5.1 <[email protected]>
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.
Refs #444 (the two remaining items of that issue are the
test-hrx-opsroute expectations and the devicerun; see the end of this body).
The tree does not compile with
GGML_HRX=ONat the pinggml/src/ggml-hrx/graph/graph-diagnostics.cpp:184:op_params_json()is astd::visitoverOpParamswith anif constexprchain and no finalelse, andba64834d("ggml-hrx: PAD parameters match the kernel …", PR #114) addedPadParamsto the variant withoutadding a branch here. A lambda's call operator is implicitly
constexpr, so falling off the end is an errorunder GCC 15 and under clang — the tree has not compiled with
-DGGML_HRX=ONsince #114. Nothing caughtit because the engine's CI and hw-gate take
cmake/hrx.cmake's public-binary-drop path, which does notcompile this tree at all.
Dump the pad fields and the circular flag with the other kind-tagged parameters and accept them back in
parse_op_params(), so a dumped plan round-trips.test-hrx-opsruns case by case (engine #444, item 1)tests/test-hrx-ops.cpphad one fail-fastmain(): ~157 calls plus the loops around them, so the firstfailed
REQUIREended the run and no later case executed. It now usestests/testing_suite.h(the runnertest-hrx-bufferalready uses): every case gets its own process, a name, a per-case PASS/FAIL line and realtotals.
237 device cases.
(
dense.q4_k.mul_mat_f32_f32_wmma.2.128,swiglu.q4_k.q4_k.…_prefill_wave32.256.4096.geglu), which is whatmakes a red row identifiable without a line number.
hrx-backend-testalready got its per-case runner in #105; the abort-on-one-wrong-parameter that could stillkill that run is fixed in the companion PR.
Evidence
Host side, CPU, at the pin — the two host cases of
test-hrx-ops:The fork has no CI, so that run is the gate for the host half.
Not in this PR (engine #444, item 2)
The stale routing expectations inside the cases: one-token kquant matmuls still expect
loom_libs:ggml_mul_mat_f32_f32_decode_wave64where the registration namesggml_kquant_mul_mat_decode_f32/…_decode_tokens_f32for 1..8 tokens (dispatch-kquant-decode.cpp,kMaxTokens = 8). Those need the scheduled kernel names harvested from a device run, which was cut short bythe release-candidate build holds; they follow as one commit on this branch when the GPU slot comes back, and
any regression found there goes into #445's table rather than being written into the expectations.
🤖 Generated with Claude Code