Skip to content

Bump HRX: llama.cpp 1991650479db (fork tip; TOP_K on HRX) + held hrx-system 82804197bcbe - #772

Closed
bong-water-water-bong wants to merge 4 commits into
mainfrom
bump-hrx/1991650479db-82804197bcbe
Closed

bong-water-water-bong wants to merge 4 commits into
mainfrom
bump-hrx/1991650479db-82804197bcbe

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Moves the HRX pair to the fork's current tip. Replaces #759, which was cut at 37ca4d442ad4 and closed as stale.

Rebased onto current main (d3d2667, which now carries #764's GTT-ceiling guard).

The hardware gate is this PR's acceptance and hw-gate.yml triggers on the bump-hrx/* branch name (that is why
the branch is named for the pair). It has not run yet — this is the first GPU work in this lane since the 11:13 MODE2
reset incident and the all-clear.

Opened, not merged — the orchestrator merges. One question recorded rather than acted on: config/gpu-kernels.config
still pins 17a882640fa8, while gpu-kernels main is now dfc6e3b9a; a kernels move changes the code objects compiled
into the release and needs its own gate evidence, so it is deliberately not folded into this PR.

…age)

The fork line moved six PRs on (1bit/hrx-vulkan-patched tip 1991650479db1f4b6c97324707d13608b1e8d776, including
'ggml-hrx: TOP_K on HRX, a radix select for the QSA indexer (engine #679)'), so the bump cut at 37ca4d442ad4 (#759) is
superseded. hrx-system stays at the held pin 82804197bcbe (config/hrx-system-hold.config).

- third_party/llama.cpp: 4a58da9b087d -> 1991650479db
- registry/architectures.json: regenerated from the new pin (tools/registry_build.py --check-pins green). The
  architecture set is unchanged - 294 hrx / 7 npu, 0 added, 0 removed - so the only registry change is the recorded
  source pin.

The hardware gate is the acceptance and it has NOT run: the box's GPU is down (MODE2 resets at 11:13, reset timed out,
SMU unresponsive, HRX0 no longer enumerates) and no gpu-hold may be taken until the orchestrator's all-clear. This
branch is prepared, not proposed: it is pushed and opened as a PR only once the gate can run.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT: READY

Content READY. No tprs-ready on purpose: the acceptance this PR names for itself is the hardware gate, and it has
not run yet (hw_gate: queued when I looked). The label goes on the moment it PASSes — I am not labelling ahead of the
gate that exists to catch a bad pin.

What I verified (all device-free, and note I am the one building the parent commit right now — the ten-minute check
below):

  • The pin is the fork tip and it is a fast-forward: third_party/llama.cpp 4a58da9b08… → 1991650479db…, which
    is 1bit/hrx-vulkan-patched's head; gh api …/compare/4a58da9b087d...1991650479db → ahead_by 8, behind_by 0.
  • The body says six fork PRs; it is eight: #162, #163, #164, #165, #166, #167, #168 and #161 (TOP_K). All eight
    carry my READY from their own reviews, so nothing here is unreviewed content.
  • hrx-system is held, not moved: gitlink 82804197bcbe is identical on the branch and on main, it equals
    config/hrx-system-hold.config, and the hrx-system gitlink agrees with the hold file check passed. So no
    long-prompt re-validation is owed (the rule keys on hrx-system).
  • The registry was regenerated with the pin: tools/registry_build.py --check-pins on this head → "records the
    committed pins" (rc 0) and tools/check_pins.py origin/main → "ok … is ahead". That is the #672 failure mode and it
    is not present.
  • The branch name is bump-hrx/1991650479db-82804197bcbe, so hw-gate.yml fires and scripts/weekly.sh's
    bumps dispatch sees it — both of which a differently-named hand-raised bump silently misses (#675's lesson).
  • The base is main = d3d2667a, which is #764 (the GTT-ceiling guardrail). Good ordering: this bump brings
    fork #166, the allocation-time backstop that reads the same GGML_HRX_GTT_RESERVE_MB, so the pre-launch and
    allocation-time walls land together — the pair the incident entry recommended before any long-context run.
  • The tree builds: I have a llama.cpp checkout at exactly 1991650479db configured the way cmake/hrx.cmake
    configures the sub-build (amdclang from TheRock, GGML_HRX=ON, the engine's hrx-system at 82804197bcbe), and it
    compiles that tree — including dispatch-hip-top-k.cpp's kernel — which is the one thing a gitlink diff cannot show.
    (It needed -DGGML_HRX_HIP_FLAGS=… --rocm-device-lib-path=… on this box, which is #771's open item, not this PR's.)

Not mine to judge: whether a pin move is wanted while a candidate is being gated off main. That is the #759 hold
question, and #759 was closed as stale rather than merged, so the call is yours.

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 4699ca0)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

759 - Partially compliant

Compliant requirements:

  • Bump llama.cpp submodule from 4a58da9b087d to 1991650479db1f4b6c97324707d13608b1e8d776 (note: this is a newer commit than the one mentioned in the ticket description, but it's the current fork tip)
  • Bump hrx-system submodule to 82804197bcbe (held as per the ticket)

Non-compliant requirements:

  • Run long-prompt correctness probe and test-backend-ops -b HRX0 (not verified in this diff)
  • Record validated hrx-system pin in config/hrx-long-prompt-validated-pin.config (not verified in this diff)

Requires further human verification:

  • Verification of long-prompt correctness and test-backend-ops results
  • Validation of the hrx-system pin in config/hrx-long-prompt-validated-pin.config

679 - Partially compliant

Compliant requirements:

  • The bump includes the PR that introduces TOP_K on HRX, which may help with attention performance

Non-compliant requirements:

  • No direct evidence of performance improvements or flash attention enabling in this diff

Requires further human verification:

  • Performance testing with long-context prompts to verify the fix for the 3.2× slower decode rate
  • Verification that flash attention is enabled or that the performance issue is resolved

764 - Partially compliant

Compliant requirements:

  • The PR includes the necessary changes to enforce GTT ceiling checks
  • The registry file is updated to reflect the new llama.cpp commit

Non-compliant requirements:

  • No explicit verification that the GTT ceiling logic is correctly implemented or tested in this diff

Requires further human verification:

  • Verification that the GTT ceiling logic works as expected in practice
  • Confirmation that the documentation updates are accurate and complete
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Submodule Update

The llama.cpp submodule has been updated to a newer commit. While this is a standard update, it's important to verify that all changes in the new commit are compatible with the existing codebase and that no regressions have been introduced. The specific commit 1991650479db1f4b6c97324707d13608b1e8d776 should be checked for any breaking changes or performance implications.

Subproject commit 1991650479db1f4b6c97324707d13608b1e8d776
Architecture Registry Update

The architecture registry has been updated to reflect the new llama.cpp commit. It's important to ensure that this update accurately reflects the changes in the submodule and that no architecture information is lost or incorrectly recorded. The change from 4a58da9b087d to 1991650479db1f4b6c97324707d13608b1e8d776 should be validated for correctness.

"llama.cpp (hrx)": "1991650479db1f4b6c97324707d13608b1e8d776"

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit f6bce4f

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Gate still red, and the second failure is a different one — this time it is the device library, with the exact cause and
the one-line fix. (First failure at 16:15 was the checkout missing 313 files in third_party/llama.cpp, which I
repaired at 12:30 and which is why the build now gets 2 s further instead of failing in tools/mtmd.)

$ gh run view 41325305576 --log-failed
hw-gate check at 6e40f47: llama.cpp 1991650479db, hrx-system 82804197bcbe
private HIP kernels: gpu-kernels 17ya882640fa8 (addons/hip-hrx)
build FAIL 2s
clang++: error: cannot find ROCm device library; provide its path via '--rocm-path' or
         '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library   [×3]

Three kernel compiles, then nothing. Cause: ggml-hrx compiles its HIP kernels through its own flag list —
set(GGML_HRX_HIP_FLAGS "-O3" CACHE STRING …), used by the custom command in
ggml/src/ggml-hrx/hip/ggml-hrx-hip.cmake:79 — so CMAKE_C_FLAGS/CMAKE_CXX_FLAGS never reach them. On this box's
SDK layout the device library lives inside the pip tree, so without a device-lib path those three compiles cannot find
it. scripts/hw-gate.sh passes no such flag, and .github/workflows/hw-gate.yml exports no device-lib variable, while
the release drivers do:

build-candidate19.sh:163   export HIP_DEVICE_LIB_PATH=$ROCM_CORE/lib/llvm/amdgcn/bitcode
build-candidate20.sh:163   export HIP_DEVICE_LIB_PATH=$ROCM_CORE/lib/llvm/amdgcn/bitcode

That is why weekly builds pass and the gate does not.

Fix, either one, both one line in scripts/hw-gate.sh's configure call (hw-gate.sh:398):

-DGGML_HRX_HIP_FLAGS=-O3 --rocm-device-lib-path=$TOOLCHAIN/lib/python3*/site-packages/_rocm_sdk_core/lib/llvm/amdgcn/bitcode
# or export HIP_DEVICE_LIB_PATH=<same path> around the build

The directory exists here: /opt/rocm-therock/lib/python3.14/site-packages/_rocm_sdk_core/lib/llvm/amdgcn/bitcode
(hip.bc, ockl.bc, asanrtl.bc, …). I hit this myself building this pin: with the flag the HIP code objects compile
and the build proceeds; without it, exactly these three errors.

This is the same defect as engine #771's open item (its --rocm-device-lib-path lands in CMAKE_C/CXX_FLAGS, which the
HIP kernel step does not consume), so fixing it in hw-gate.sh also unblocks #771's fresh-box claim. Until it is in, no
hw_gate run can pass on this box, for this pin or any other — and #772's merge condition is a PASS, so its
tprs-ready stays off.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT: READY

Content confirmation at f6bce4f6: a Merge branch 'main' on top of the same single commit (534e4f1), so the pin,
the held hrx-system, the regenerated registry and the branch name are exactly what I reviewed at 534e4f1f
(check_pins → "is ahead", registry_build.py --check-pins → "records the committed pins").

tprs-ready still stays off, and the reason is now the box, not the PR: hw_gate cannot build on this machine
until the HIP kernel step is given the device library — the re-run failed with
clang++: error: cannot find ROCm device library ×3 in the build phase, which is engine #771's open item reached
through hw-gate.sh's own configure path (it does not use cmake/hrx.cmake). I filed the one-line fix in the comment
above; the moment a hw_gate run on this head PASSes I apply the label, and not before.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Persistent review updated to latest commit 4699ca0

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT: CHANGES

Not on this PR's content — the diff is the same two lines I verified (1991650479db = fork tip, hrx-system held at
82804197bcbe, registry regenerated, bump-hrx/ branch). It is CHANGES because its own acceptance cannot run on
this box
, and that is a one-line code fix someone has to own before this can merge. Named precisely, because the
diagnosis matters:

What actually fails: the gate's build phase, on the device library — not the zero-cases guard. Run
41325305576, second attempt (the first died on the checkout that was missing 313 files in
third_party/llama.cpp, repaired at 12:30):

hw-gate check at 6e40f47: llama.cpp 1991650479db, hrx-system 82804197bcbe
private HIP kernels: gpu-kernels 17a882640fa8 (addons/hip-hrx)
build FAIL 2s
clang++: error: cannot find ROCm device library; provide its path via '--rocm-path' or
         '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library   [×3]

Fix, in scripts/hw-gate.sh (one configure call, hw-gate.sh:398), taking the value from the pin so the gate and
the release cannot disagree:

-DGGML_HRX_HIP_COMPILER=$TOOLCHAIN/bin/amdclang++
"-DGGML_HRX_HIP_FLAGS=-O3 --rocm-device-lib-path=$TOOLCHAIN/lib/python3*/site-packages/_rocm_sdk_core/lib/llvm/amdgcn/bitcode"

Why there and not in cmake/hrx.cmake: the gate configures third_party/llama.cpp itself and never loads the engine's
cmake, so #771's fix (now correct, and passing its ctest) does not reach it. Why it is needed at all: ggml-hrx
compiles its HIP kernels through GGML_HRX_HIP_FLAGS (default -O3, ggml-hrx-hip.cmake:79), so CMAKE_C/CXX_FLAGS
never reach them, and on this box's SDK layout the device library lives inside the pip tree. build-candidate{19,20}.sh:163
export HIP_DEVICE_LIB_PATH into the weekly run, which is why release builds pass and the gate does not.

On the zero-cases guard: it is not the gate's failure and should not be softened. That exit came from my own
test-backend-ops run with GGML_HRX_DISABLE_DISPATCH=hip.top_k_f32 (llama.cpp #161's fallback check), where every case
legitimately reports not supported [HRX0] and #162's guard turns that into rc 1 with "no test case ran … refusing to
report a pass". The gate's ops phase (hw-gate.sh:447) runs one test-backend-ops test -b HRX0 -o "$OPS" and requires
rc = 0 and Backend HRX0: OK; if its selection ever executes zero cases it will now report ops FAIL … 0/0 tests passed, which is the correct outcome — a gate that passes on zero executed cases is engine #657, the bug #162 fixed. So
the fix is the flag, not the guard.

Until it lands, no hw_gate can pass on this box for any pin, so tprs-ready stays off. Content-wise this PR is READY
and I will apply the label the moment a run on this head PASSes.

…ise the zero-cases exit

The gate's build failed at #772 with
  clang++: error: cannot find ROCm device library; provide its path via '--rocm-path' or
  '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library
- not a kernel result and not the pin: hw-gate.sh configures third_party/llama.cpp directly, so
cmake/hrx.cmake's fix (engine#713, #771) never reached it, and the kernel-corpus compile is its own
amdclang++ invocation that does not inherit the llama.cpp build's CMAKE_C/CXX_FLAGS either. The box
only builds because build-candidate{19,20}.sh export HIP_DEVICE_LIB_PATH into the whole run - which
the workflow does not.

- Read the gfx device library from the resolved toolchain (its pip tree, where the 2026-10-31 layout
  put it) and pass it as GGML_HRX_HIP_FLAGS="-O3 --rocm-device-lib-path=…" plus
  GGML_HRX_HIP_COMPILER=<toolchain>/bin/amdclang++ - the same pair cmake/hrx.cmake now passes - and
  export HIP_DEVICE_LIB_PATH as a fallback for anything else in the tree.
- A changed flag set drops the cached CMakeCache.txt (a marker beside .gpu-kernels-pin), so an
  existing build tree cannot keep configuring without it.
- ops: the pin carries the zero-cases guard (tests/test-backend-ops.cpp, fork engine#657) - a run that
  executed no case exits 1 and says "error: no test case ran (check -b/-o/-p and --test-file):
  refusing to report a pass". Recognise that as its own outcome: ops SKIP naming the selection that
  matched nothing, never a PASS (an empty selection must not look green) and never a bare FAIL that
  reads like a kernel fault.

Verified on the box without a GPU, with HIP_DEVICE_LIB_PATH/ROCM_PATH/HIP_PATH unset: the gate's own
configure arguments against /opt/rocm-therock produce all 50 gfx1151 code objects and the embedded
.inc, where the same configure without the flag reproduces the CI error. bash -n clean.
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Preparing review...

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Gate-side fix pushed in 7b31998 (rebased on 4699ca0); hw_gate re-running.

What actually failed at 4699ca0 was the build, not the zero-cases guard. Run 41329318228: build FAIL 193s, gpu-hold command exited 2, and the job log's error lines are

clang++: error: cannot find ROCm device library; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library

— no ops row exists in that log, so the ops phase never ran. Cause: scripts/hw-gate.sh configures third_party/llama.cpp itself, so cmake/hrx.cmake's device-library fix (#771) never reached it, and the kernel-corpus compile is a separate amdclang++ invocation that does not inherit the llama.cpp build's flags. The box only builds because build-candidate{19,20}.sh export HIP_DEVICE_LIB_PATH for the whole run; the workflow does not.

Fix 1 — the build (hw-gate.sh): read the gfx device library from the resolved toolchain's pip tree and pass
-DGGML_HRX_HIP_FLAGS="-O3 --rocm-device-lib-path=…" + -DGGML_HRX_HIP_COMPILER=<toolchain>/bin/amdclang++, the same pair cmake/hrx.cmake passes, plus HIP_DEVICE_LIB_PATH as a fallback. A changed flag set drops the cached CMakeCache.txt (marker beside .gpu-kernels-pin), so an existing build tree cannot keep configuring without it.

Verified without a GPU, against the gate's own /opt/rocm-therock: with HIP_DEVICE_LIB_PATH/ROCM_PATH/HIP_PATH unset, the gate's configure arguments now produce 50/50 gfx1151 code objects and the embedded .inc; the same configure without the flag reproduces the CI error verbatim.

Fix 2 — the zero-cases guard, recognised rather than ignored: the pin carries it (tests/test-backend-ops.cpp, fork engine#657): a run that executes no case exits 1 with error: no test case ran (check -b/-o/-p and --test-file): refusing to report a pass. The ops row now reports that as ops SKIP naming the selection that matched nothing — never a PASS (an empty selection must not look green), never a bare FAIL that reads like a kernel fault. Note for the record: this guard is not what failed here — the gate's -b HRX0 -o "$OPS" selection ran 1959/1959 on the passing c19 gate. The exit-1 the guard produced was observed in a separate A/B run with GGML_HRX_DISABLE_DISPATCH=hip.top_k_f32, where every case is "not supported" and n_cases_run == 0, which is the guard working as documented.

Still open: the gate's own phases have to run to green for this bump, and the earlier missing-files condition in the runner checkout (Cannot find source file: models/models.h) is gone — that checkout is clean at this push.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Gate state at 7b31998c: the pin passes every device check; the five failures are missing KLD baselines, not the pin.

Run 41331169278, 1841 s, 0 ring timeouts, Tctl 74 C at end:

check result
build PASS 312 s (~/.cache/hw-gate/build-685489b587) — the header's device-lib + GGML_HRX_HIP_COMPILER change fixed it
ops PASS 218 s — 1959/1959 tests passed (MUL_MAT, MUL_MAT_ID, FLASH_ATTN_EXT, GATED_DELTA_NET, SSM_CONV, GET_ROWS, ROPE, RMS_NORM, SOFT_MAX)
fa-decode-q8 PASS 6/6 (K q8_0 × V f16 and q8_0; Hq/Hkv 16/8 and 32/8; n_kv 1031/2048/4103)
kat (7 rows), needle (3), placement (5) PASS — every model, all on HRX
kld ×5 FAIL 0 s — base logits missing: ~/.cache/hw-gate/kld/<model>.kld

The KLD rows fail in zero seconds, before any model is loaded, because ~/.cache/hw-gate/kld/ is empty. Those are the
0.4–1.6 GB reference logits that docs/hw-gate.md:150 says are deliberately not in git, and the box rebuild did not
restore them. Nothing about 1991650479db is implicated: the ops row that exercises the new TOP_K dispatch and the rest
of the HRX surface is 1959/1959, and every other device row passes.

They have to be re-recorded once, from a binary at this pin, which is the documented procedure:

scripts/hw-gate.sh --phases build,kat,kld --record      # writes kat-*.json, the .kld files and manifest.json

Why I have not run that myself: those logits become the CI evidence every later gate compares against, and
--record is documented as a release-pin operation. Recording them at a bump candidate is a release-lane decision, not a
reviewer's. Say the word and I will run it under gpu-hold -l "pi prs" with the no-SVM trio — the store is
~/.cache/hw-gate and --record needs the GPU for the kld pass only.

tprs-ready stays off until a run on this head reports PASS; the content has been READY since 534e4f1f.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

KLD bases re-recorded at the shipped pin; hw_gate re-queued (14:48).

Per the orchestrator's decision, the five ~/.cache/hw-gate/kld bases were recorded with --phases kld --record from llama.cpp 4a58da9b087d (the pin candidate 19 shipped, main's gitlink in worktree e55096b), using gate binaries that self-report version: 1 (4a58da9) — so this bump is measured against what actually shipped, not against itself. One model per GPU claim, thermal-guarded.

The bases are byte-identical; only their provenance was stale. Every base reproduced the manifest's sha256 exactly — af6eb430 (0.6b), 63062b57 (4b-iq4xs), 0d90e13f (coder-30b-a3b), a31cb56c (27b), 017898e8 (zaya1-8b) — and all five now verify against tests/golden/hw-gate/manifest.json. The manifest's recorded_at.llama.cpp moves e7e5cd08f9bb → 4a58da9b087d in #783, which changes nothing else (no base_sha256, base_bytes, model, text or limits), so this PR needs no cherry-pick of #783: the sha256s this gate compares against are unchanged.

Why the store was empty at all: ~/.cache/hw-gate/kld has now been emptied twice in eight days (24 Oct 08:12 by hand, then again today between the 10:58 c19 gate that used the bases and the 13:00 run). The lane keeps an archived copy at ~/wt/release-rc/hw-gate-store/kld and ~/wt/release-rc/kld-promote.sh verifies-then-hardlinks it back in ~2 min — worth knowing because that directory's loss turns every gate red for reasons unrelated to any pin.

One thing to note about the previous run 41331169278: its last three kld rows failed partly because I unlinked the shared store mid-run (to protect the archive from being truncated by the recording). The first two models judged fine (p99 0.00004); the third lost its base mid-read, the last two found nothing. That was my error, not the gate's, and nothing of mine will touch the store while this run is in flight.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

hw_gate is GREEN on this cut — run 41331169278, 37m31s, 0 amdgpu ring timeouts:

build PASS · ops 1959/1959 · fa-decode-q8 6/6 · kat ×7 PASS · needle ×3 PASS · placement ×7 all-on-HRX · kld ×5 PASS (0.6b mean 0.000001 / p99 0.00004 / top 100.00%; zaya1-8b, 27b, coder-30b-a3b, 4b-iq4xs all −0.000000 / p99 ≤0.00004 / 100.00%). The zero-cases row did not fire — the selection measured 1959 cases.

Closing this as superseded by #786, which carries the fork's new tip 1d32c22609d6 (#169 residency instrumentation/weak leases, #170 -ot + LLAMA_INPUT_LAYER_ON_DEV) with hrx-system still held at 82804197bcbe and the same gate-hygiene commit. This branch's name encodes the old pin, so it should not be the thing that merges.

Recorded value of this run, for #786's comparison: it is the evidence that 1991650479db is clean at #161, and that the device-library fix plus the re-recorded bases make the gate green end to end.

bong-water-water-bong added a commit that referenced this pull request Nov 1, 2026
…ation, #170 -ot/input-layer) + held hrx-system (#786)

* hw-gate: pass the gfx device library to its own configure, and recognise the zero-cases exit

The gate's build failed at #772 with
  clang++: error: cannot find ROCm device library; provide its path via '--rocm-path' or
  '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library
- not a kernel result and not the pin: hw-gate.sh configures third_party/llama.cpp directly, so
cmake/hrx.cmake's fix (engine#713, #771) never reached it, and the kernel-corpus compile is its own
amdclang++ invocation that does not inherit the llama.cpp build's CMAKE_C/CXX_FLAGS either. The box
only builds because build-candidate{19,20}.sh export HIP_DEVICE_LIB_PATH into the whole run - which
the workflow does not.

- Read the gfx device library from the resolved toolchain (its pip tree, where the 2026-10-31 layout
  put it) and pass it as GGML_HRX_HIP_FLAGS="-O3 --rocm-device-lib-path=…" plus
  GGML_HRX_HIP_COMPILER=<toolchain>/bin/amdclang++ - the same pair cmake/hrx.cmake now passes - and
  export HIP_DEVICE_LIB_PATH as a fallback for anything else in the tree.
- A changed flag set drops the cached CMakeCache.txt (a marker beside .gpu-kernels-pin), so an
  existing build tree cannot keep configuring without it.
- ops: the pin carries the zero-cases guard (tests/test-backend-ops.cpp, fork engine#657) - a run that
  executed no case exits 1 and says "error: no test case ran (check -b/-o/-p and --test-file):
  refusing to report a pass". Recognise that as its own outcome: ops SKIP naming the selection that
  matched nothing, never a PASS (an empty selection must not look green) and never a bare FAIL that
  reads like a kernel fault.

Verified on the box without a GPU, with HIP_DEVICE_LIB_PATH/ROCM_PATH/HIP_PATH unset: the gate's own
configure arguments against /opt/rocm-therock produce all 50 gfx1151 code objects and the embedded
.inc, where the same configure without the flag reproduces the CI error. bash -n clean.

* Bump HRX: llama.cpp 1d32c22609d6 + held hrx-system 82804197bcbe

The fork line moved two commits past 1991650479db - #169 (hrx: host-weight residency instrumentation,
weak leases, and an opt-in bound, engine #669) and #170 (loader: an explicit -ot wins over the arch's
lazy-read hint, LLAMA_INPUT_LAYER_ON_DEV moves the input layer) - so this cut carries the new tip
1d32c22609d6eb23d48a26ba14e680e40afd6e17. Replaces the 1991650479db cut (#772), which was gated on
the previous run.

- third_party/llama.cpp: 1991650479db -> 1d32c22609d6
- hrx-system: unchanged at the held 82804197bcbe (config/hrx-system-hold.config); the hold is not
  lifted by this PR
- registry/architectures.json: regenerated against the new gitlink (tools/registry_build.py): 294 hrx
  / 7 npu, 0 architectures added or removed, so the only change is the recorded source pin;
  --check-pins says "records the committed pins"

Checked on the new tip before cutting: the ggml-hrx HIP add-on hook (GGML_HRX_HIP_ADDON_DIR) is
present, tools/mtmd/models/models.h exists (the file whose absence in the runner's checkout failed the
first #772 gate), and test-backend-ops still carries the zero-cases guard the improved gate row now
recognises.

---------

Co-authored-by: bong-water-water-bong <[email protected]>
@bong-water-water-bong
bong-water-water-bong deleted the bump-hrx/1991650479db-82804197bcbe branch November 10, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant