Repository navigation
ggml-hrx: PAD parameters match the kernel; source strides; circular flag (census G5) - #114
Merged
bong-water-water-bong merged 2 commits intoOct 20, 2026
Merged
Conversation
import_op_params returned monostate for GGML_OP_PAD, so no matcher could read the left/right pads of each axis and the op had no dispatch at all (the Qwen3.8-27B MTP head's PAD node, placement census 2026-10-20, gap 5). Add PadParams and its import and equivalence cases. Co-Authored-By: Claude Opus 5 <[email protected]>
ggml_pad_ext_circular stores its flag at op-param index 8, but PadParams only carried the eight amounts, so a matcher that accepted a circular pad computed zero-padding instead of wrapping. test-backend-ops caught it: every circular f32 PAD case failed against the CPU reference. PadParams now carries `circular`, `import_op_params` reads index 8, and `pad_params_equivalent` compares it, so a matcher can decline the circular form (it wraps, which the zero-fill kernel does not implement) and the fast path no longer confuses the two. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
added a commit
that referenced
this pull request
Oct 23, 2026
…rx-ops case by case (engine #444) (#127) * ggml-hrx: dump and re-read PAD op params, so the tree compiles again 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]> * tests: run test-hrx-ops case by case (engine #444) 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]> --------- Co-authored-by: bong-water-water-bong <[email protected]> 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.
PAD declared 13 integer parameters against a 12-parameter kernel (nothing was written), took source strides from the output dims, and did not import the circular-padding flag (op param 8). With gpu-kernels #9: test-backend-ops PAD f32 17/17 (was 0/20), census q27.mtp 0 off HRX, 0 errors.
Small edits to AMD's ggml-hrx files (no new files needed); tested on strixhalo by the census-gaps goal (mvgdshw8), evidence in ~/wt/HRX-GAPS-PROGRESS.md. The engine pin bump that takes these runs the full hw-gate.
🤖 Generated with Claude Code