Repository navigation
hrx: default-verbosity messages name a class, the detail moves behind GGML_HRX_REPORT - #138
Conversation
|
Review (orchestrator): right shape - the default line keeps the failure class, the kernel ids / binding and dependency counts move behind the report level via log_detail, test updated. Stays a draft until a GGML_HRX=ON build + hrx-backend-test run (build hold after the leaderboard releases the lane, together with #136). |
038ca05 to
5f864dd
Compare
|
Device half, at So this branch is green in both verbosities on the host and 11/11 on the device, and the single |
|
Triage from the CPU box ( Diff read, not the title. Two commits, 6 files: Ancestry (the thing worth checking before a bump): Checks: the repo has no CI — Verdict: needs work — the missing piece is the device arm the body promises, not the code. I am not merging it while that is outstanding and while the measurement pass owns this box. Post the device numbers when the GPU lane is free and it is a one-sentence-risk merge: "log text only, gated behind |
… GGML_HRX_REPORT A rejected plan or a bad corpus entry used to put the kernel name, the kernel id, the binding count and the ABI names straight into the message that a default run prints. Those describe the kernel set itself, so the default text now carries the class of failure and the detail is kept when `GGML_HRX_REPORT` is set. - `Status::log_detail(neutral, format, ...)` keeps the neutral class by default and the formatted detail when `GGML_HRX_REPORT` is truthy (unset/0/false/no/off = off); `Status::detail_reported()` reads it per message, so a caller or a test can exercise both. `Status::log()` is unchanged for messages that carry no such detail. - `dispatch/command-program-diagnostics.cpp`: `format_command()` always writes `command N kind=Kernel`, and appends `kernel_id=`, `bindings=`, `deps=` only in report mode. This is the one place every command-context message is built from, so the behaviour change lands without touching dozens of call sites. - `dispatch/command-program.cpp` (4 messages) and `kernel-corpus/kernel-corpus.cpp` (8 messages): the kernel-naming forms go through `log_detail` with a class such as `plan rejected: binding count disagrees with the ABI` / `kernel corpus: invalid catalog id`. - `tests/hrx-backend-test.cpp`: the three assertions that pinned the detail text now check the neutral class by default and the detail after setting `GGML_HRX_REPORT=1`, so both paths are covered. Checked on the host with the suite (66 cases, no device): `59 passed, 1 failed, 6 known-fail` in **both** modes — the single failure was one of the assertions above, updated in this commit. In the default log the string `kernel_id=` no longer appears in any message (only in a test's own assertion text). The engine side needed no change: its startup and placement lines carry counts and `ggml` op classes (`MUL_MAT`, `RMS_NORM`), not our kernels. Not yet built or run after the last test edit — the build lane is committed to other work right now; the verification for this exact tree is a `ninja hrx-backend-test` plus the host suite, which I will run and paste here as soon as the lane frees up. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Continuation of the default-verbosity work on the current fork tip (`6b397ee9`), found by re-reading what a default run still prints: - `format_command_binding()` printed the ABI slot name (`gate_weight`, `partition_table`, ...) and the packed weight layout in every command-context message. Both now sit behind `GGML_HRX_REPORT`; the graph-side facts (value, origin, access, range) stay, so a message still says what was bound and where. - the ABI-mismatch and unresolvable-kernel messages in `command-program.cpp` carry a neutral class that keeps the command context (`command 0 kind=Kernel: plan rejected: ...`) - which command was rejected is graph structure, the kernel name and id are not. - `runtime/kernel-executable-cache.cpp`: the cache key is a kernel name plus its configuration, and it appeared in every load/compile failure through `key`, `error_message` or a direct `kernel %s`. All of those log lines now pass through one `disclosed()` helper, so a default run names the failure class and `GGML_HRX_REPORT=1` names the key. <withheld: GGML_HRX_REPORT=1> is what a default line shows instead. Tests: `graph_import` now pins both verbosities - the default text has no ABI slot names, no kernel id, no binding/dependency counts, and `GGML_HRX_REPORT=1` brings them back - and it clears the variable on entry so an ambient value cannot decide which branch it checks. The slot-name assertions in the resolve/verify error cases pin the graph-side text instead of the name. Both modes on the host, hrx-system `82804197bc`: **65 passed, 0 failed, 1 known-fail, 0 unexpected-pass, 66 total** (`GGML_HRX_REPORT` unset and `=1`). The one known-fail is `qwen_matmul_dispatch`, which fork PR #151 fixes; it is not in this branch. `kernel_id=` appears in the default log only where the test asserts its absence. Co-Authored-By: Claude Fable 5.1 <[email protected]>
5f864dd to
57d1404
Compare
|
Rebased onto the current base and re-measured Pins used
Both trees were configured identically apart from the source directory: Counts (host cases;
|
| tree | GGML_HRX_REPORT |
result |
|---|---|---|
base 40c4ccb76 |
unset | 56 passed, 10 failed, 0 known-fail, 66 total |
base 40c4ccb76 |
=1 |
56 passed, 10 failed, 0 known-fail, 66 total |
head 57d140468 |
unset | 56 passed, 10 failed, 0 known-fail, 66 total |
head 57d140468 |
=1 |
56 passed, 10 failed, 0 known-fail, 66 total |
Each configuration was run three times; the counts and the fail set were identical every run. The 11 device cases were not run (this host has no HRX device), so the numbers above are host cases only.
The ten failures are the same names on base and on the head, in all four runs (diff of the sorted fail lists is empty):
common_mul_mat_id_postops_dispatch
common_mul_mat_id_swiglu_dispatch
gdn_native_projection_pair_dispatch
qwen_attention_postprocess_dispatch
qwen_flash_attention_dispatch
qwen_matmul_dispatch
qwen_routed_gate_up_dispatch
qwen_weighted_reduce_next_rmsnorm_q8_publication
rmsnorm_binary_f16_output
tiled_matmul_alternate_publish
Every remaining failure also fails on the untouched base at the same pins; this branch adds none and fixes none. They are dispatch-name / publication expectations that track the add-on pin, which is why the count is 10 here and was 5–6 at the older 34-kernel add-on pin the earlier numbers came from — the head/base comparison is what carries the signal, not the absolute count.
The cases this PR actually edits pass in both verbosities: graph_import (it pins both verbosities itself, unsetenv on entry, so an ambient value cannot decide which branch it checks), graph_import_mixed_backend_boundary, and dispatch_registry. Nothing in the default run prints kernel_id=, an ABI slot name or a cache key, which is what the change asks for.
Diff scope is unchanged by the rebase: 6 files, +174/−54 —
ggml/src/ggml-hrx/dispatch/command-program-diagnostics.cpp 21 ++++--
ggml/src/ggml-hrx/dispatch/command-program.cpp 33 +++++---
ggml/src/ggml-hrx/kernel-corpus/kernel-corpus.cpp 23 ++++--
ggml/src/ggml-hrx/runtime/kernel-executable-cache.cpp 45 +++++++---
ggml/src/ggml-hrx/status.h 29 ++++++
tests/hrx-backend-test.cpp 77 ++++++++++++----
Reproducing
# base control
git checkout 40c4ccb76e48aafd44e024b0d2bb27b38bf54015
cmake -S . -B build-base -G Ninja -DCMAKE_BUILD_TYPE=Release -DGGML_HRX=ON \
-DHRX_SOURCE_DIR=<hrx-system @82804197bcbe060b1371d6548337fdc842034cdd> \
-DGGML_HRX_HIP_ADDON_DIR=<gpu-kernels @17a882640fa88e78ec92af42703a0707a6b7a061>/addons/hip-hrx \
-DGGML_HRX_HIP_COMPILER=<rocm>/bin/amdclang++ -DGGML_HRX_HIP_TARGETS=gfx1151 \
-DGGML_VULKAN=OFF -DGGML_NATIVE=ON -DGGML_BUILD_TESTS=OFF -DLLAMA_BUILD_TESTS=ON
ninja -C build-base -j14 hrx-backend-test
env -u GGML_HRX_REPORT ./build-base/bin/hrx-backend-test # 56/10
GGML_HRX_REPORT=1 ./build-base/bin/hrx-backend-test # 56/10
# head: same configure, source at 57d140468 → 56/10 in both verbosities, same fail set
The branch was force-pushed with --force-with-lease to 1bit/hrx-neutral-messages only; nothing else in the fork was rewritten.
Rebased onto the current tip (
6b397ee9) and finished: the default verbosity now names a class, and every kernelname, kernel id, ABI slot name and cache key sits behind
GGML_HRX_REPORT.What a default run prints
GGML_HRX_REPORT=1addsformat_command()command 0 kind=Kernelkernel_id=…,bindings=N,deps=Nformat_command_binding()binding value=21 origin=GraphValue access=Read range=[0, 128)lhs,gate_weight,partition_table) and the packed weight layoutcommand 0 kind=Kernel: plan rejected: kernel not resolvable/…: binding count disagrees with the ABI/…: binding does not match the ABIkernel corpus: invalid catalog id/invalid compile recipe/repeated target variant/target variants disagree on ABI/invalid binding names/missing binding ABIkernel <name> …<withheld: GGML_HRX_REPORT=1>where the cache key or the compiler text would beStatus::log_detail(neutral, format, …)does the split andStatus::detail_reported()reads the variable permessage (unset/
0/false/no/off= off), so a caller or a test exercises both without recompiling. The classkeeps the command context, because which command was rejected is graph structure; the kernel name and id are the
part that describes the private kernel set.
Status::log()is untouched for messages that carry no such detail.The engine side needed no change: its startup and placement lines carry counts and
ggmlop classes(
MUL_MAT,RMS_NORM), not our kernels.Verification
Tree: this branch + hrx-system
82804197bc,-DGGML_HRX=ON, label 90 W cap, PCM pad (23 Oct).hrx-backend-test, host, both verbosities (GGML_HRX_REPORTunset and=1):65 passed, 0 failed, 1 known-fail, 0 unexpected-pass, 66 total, exit 0 in both.
qwen_matmul_dispatch, which the open PR tests: qwen_matmul_dispatch runs to the end at the pin (engine #445) #151 fixes - it is not in this branch, and itis the only row either suite reports.
graph_importpins both verbosities itself (and clears the variable on entry, so an ambient value cannot decidewhich branch it checks): the default text has no ABI slot name, no
kernel_id=, no binding/dependency counts;GGML_HRX_REPORT=1brings each back. In the default logkernel_id=appears only inside those assertions.test-hrx-ops, 239 cases, andhrx-backend-test's 11 device cases) is queued behind other agents'claims in
~/GPU-QUEUEand will be posted here as soon as the claim comes round; the same two suites weregreen at this tree before the redaction (
hrx-backend-test65/0/1 host + 11/11 device,test-hrx-ops239/239bar the one row tests: qwen_matmul_dispatch runs to the end at the pin (engine #445) #151 fixes), and this change touches nothing they compute.