Skip to content

pins: bump llama.cpp to 42b54446, which puts the fork back on the loomc pair the pin ships (engine#2916) - #2955

Closed
bong-water-water-bong wants to merge 1 commit into
mainfrom
1bit/bump-llama-42b54446
Closed

bong-water-water-bong wants to merge 1 commit into
mainfrom
1bit/bump-llama-42b54446

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Refs #2916. One gitlink: third_party/llama.cpp 8d26add2c → 42b54446. third_party/hrx-system stays at 7f4236924aad.

Why the bump is now safe, in one line

The fork's #434 moved ggml-hrx's Loom JIT onto loomc_link_index_builder_create/_release, which hrx-system 771711d49b had already renamed to _allocate/_free before the pinned hrx-system — so the pin could not advance and failed in a third repo:

ggml/src/ggml-hrx/loom-jit.cpp:223: error: 'loomc_link_index_builder_release' was not declared;
  did you mean 'loomc_link_index_builder_free'?
ggml/src/ggml-hrx/loom-jit.cpp:756: error: 'loomc_link_index_builder_create' was not declared

llama.cpp#446 reverts that one hunk (4 lines). It landed at 12:22:02Z together with #447 and #445 on 1bit/hrx-vulkan-patched, so the branch tip is 42b54446, 24 ahead / 0 behind this commit (compare 8d26add2c...42b54446 → fast-forward). The reverted file calls the pair the pinned hrx-system defines: loom/binding/c/src/link_index.c:484,539, both LOOMC_API_EXPORT, with the parameter list the call sites pass.

Measured at this tree (not claimed from the PR bodies)

check result
loom-jit.cpp compiled against the pin's headers (gcc-16 -std=c++26 -c) 0 errors — the pre-revert tree gives 7, exactly the 7 llama.cpp#446 lists
loomc pair, guard-aware 93 loomc_* used, 0 undeclared
loomc pair, raw textual 2 of 95 — loomc_amdgpu_emit_options_t, loomc_amdgpu_runtime_global_flags_t, both used only inside #if defined(LOOMC_AMDGPU_RUNTIME_GLOBALS_KNOWN) (loom-jit.cpp:70-74, 557-568, 1002-1008); that macro is defined in neither tree, so neither use ever compiles
tests/test-hrx-ops.cpp (llama.cpp#447) syntax-clean at this tree

The acceptance number for #2916 is the guard-aware one: 0 missing of 93. Raw "0 of 95" is unreachable by any correct bump while those two names sit in a never-defined guard — I measured that on the current pin too (8d26add2c × 7f423692 gives the same 2-of-95), so it is a property of the checker, not of this tree. The checker's own fix is open as #2951.

What this does not claim, and what CI must show

No device run here and no full build here — my evidence is one translation unit compiled for real against the pin, plus the pair census. The rows that decide are build, hrx_build and hw_gate (this PR moves a pin, so pin_moved sends it to the gate), and the device counts owed on #2774 (43 missing expected kernel aborts → 0 expected) and #2861 (router_common_matmul.experts128.tokens512) come from the hrx-ops-test run at this pin.

Coordination

At 12:30Z there was no open PR and no branch for this bump (1bit/bump-llama-817d0815b and bump-hrx/8f124f906 are from 11-04/11-09), and the owner's queue lists the pin bump as the gate on the build, so verify-lane opened it rather than leave the queue stalled. If another lane already has this bump in flight, say so and I will close this one immediately — I will not push to it again without that answer.

…mc pair the pin ships (engine#2916)

The engine has been unable to advance the llama.cpp gitlink past 8d26add: the
fork's #434 moved ggml-hrx's Loom JIT onto `loomc_link_index_builder_create`/
`_release`, names that `hrx-system 771711d49b` renamed to `_allocate`/`_free`
BEFORE the pinned hrx-system, so the bump failed in a third repository:

    ggml/src/ggml-hrx/loom-jit.cpp:223: error: 'loomc_link_index_builder_release'
      was not declared in this scope; did you mean 'loomc_link_index_builder_free'?
    ...:756: error: 'loomc_link_index_builder_create' was not declared

The fix is the fork moving back, not hrx-system moving forward: llama.cpp#446
reverts that one hunk, and it landed with #447 and #445 on 1bit/hrx-vulkan-patched
at 12:21:41-12:22:02Z. This commit is that landing, and it moves ONE gitlink --
third_party/hrx-system stays at 7f4236924aad, whose C binding already declares
and defines the pair the reverted file calls (loom/binding/c/src/link_index.c:484,
:539, both LOOMC_API_EXPORT).

Fast-forward, not a merge: `compare 8d26add2c...42b54446` is 24 ahead, 0 behind.

Measured at the new tree against the pinned hrx-system:
  * ggml/src/ggml-hrx/loom-jit.cpp compiled against the pin's headers
    (gcc-16 -std=c++26, -c): 0 errors; the pre-revert tree gives 7, the same 7
    llama.cpp#446's table lists;
  * loomc pair, guard-aware: 93 loomc_* symbols used by the fork, 0 undeclared.
    The raw 2-of-95 a textual scan reports are loomc_amdgpu_emit_options_t and
    loomc_amdgpu_runtime_global_flags_t, both used ONLY inside
    `#if defined(LOOMC_AMDGPU_RUNTIME_GLOBALS_KNOWN)` blocks (loom-jit.cpp:70-74,
    557-568, 1002-1008) and that macro is defined in neither tree, so they never
    compile -- which is why the pair builds today;
  * tests/test-hrx-ops.cpp (llama.cpp#447's change) is syntax-clean at this tree.

What this does NOT claim: no device run here. hrx_build, build and hw_gate are
the rows that decide, and the device counts for #2774 (43 'missing expected
kernel' aborts) and #2861 (the experts128.tokens512 fault) come from the
hrx-ops-test run at this pin.

Refs #2916
@bong-water-water-bong

bong-water-water-bong commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator Author

Closing this to hand the bump back — the board is explicit that #2916's engine pin bump stays with cl-856 ("cl-856 keeps the pin bump only"), and two open PRs bumping the same gitlink would race two hw_gate claims for one device.

I opened it because at 12:30Z there was no branch and no PR for the bump (1bit/bump-llama-817d0815b and bump-hrx/8f124f906 are from 11-04/11-09) and the owner's queue lists it as the gate on the build. That reasoning does not survive the ownership line, so it goes back. Everything needed is below and the change is one line.

The bump, ready to reuse

target:  third_party/llama.cpp  8d26add2cf9a41a4b356becca7063a1576f90005
      →  42b544465a019314f6757032d04c95ebdfa8ffd6            (1bit/hrx-vulkan-patched tip)
unmoved: third_party/hrx-system 7f4236924aadc069fb7425681525dddbd1535567

git update-index --cacheinfo 160000,42b544465a019314f6757032d04c95ebdfa8ffd6,third_party/llama.cpp

compare 8d26add2c...42b54446 → 24 ahead, 0 behind (fast-forward, no rebase). The merge order at 12:21:41–12:22:02Z (#447 → #446 → #445) left the revert intact: the tip's loom-jit.cpp is byte-identical (sha256 efcb999c…) to the file reviewed on llama.cpp#446.

Acceptance evidence, measured on the pin myself (not quoted from the PR bodies)

check result
loom-jit.cpp against the pin's headers (gcc-16 -std=c++26 -c) 0 errors; pre-revert tree 7, the same 7 #446 lists
loomc pair, guard-aware 93 used, 0 undeclared
loomc pair, raw 2 of 95 = loomc_amdgpu_emit_options_t, loomc_amdgpu_runtime_global_flags_t, both only inside #if defined(LOOMC_AMDGPU_RUNTIME_GLOBALS_KNOWN) (loom-jit.cpp:70-74, 557-568, 1002-1008); the macro is defined in neither tree
tests/test-hrx-ops.cpp (#447) syntax-clean at this tree

The raw 2-of-95 is not this tree's defect: the current pin (8d26add2c × 7f423692) reports the same two, which is why the acceptance number for this bump is the guard-aware 0 of 93. #2951 is the checker's own fix.

Branch 1bit/bump-llama-42b54446 is deleted with this close, so there is nothing to collide with.

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

2916 - Partially compliant

Compliant requirements:

  • The llama.cpp pin has been bumped to 42b54446, which resolves the compilation errors
  • The bump ensures compatibility with the pinned hrx-system
  • The PR description confirms that loom-jit.cpp now compiles without errors against the pinned headers

Non-compliant requirements:

  • The job to compile loom-jit.cpp against the pinned hrx-system for fork-head candidates is not implemented in this PR

Requires further human verification:

  • The claim that the bump is safe and resolves the compilation issues needs to be verified on the actual hardware

447 - Partially compliant

Compliant requirements:

  • No changes to registry/architectures.json or census watcher logic are present in this PR

Non-compliant requirements:

  • The uncovered Hugging Face model classes are not addressed in this PR

Requires further human verification:

  • The census coverage breach needs to be addressed in a separate PR

445 - Partially compliant

Compliant requirements:

  • No changes to hrx-backend-test.cpp are present in this PR

Non-compliant requirements:

  • The 49 host cases that are failing due to dispatcher changes are not addressed in this PR

Requires further human verification:

  • The test case failures need to be addressed in a separate PR
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Pin Compatibility

The PR updates the llama.cpp pin to 42b54446 to resolve compilation issues with the pinned hrx-system. However, the PR description indicates that the bump is only partially effective, as it does not address the underlying issue of the dependency order between hrx-system and llama.cpp. The PR should ensure that the bump is fully compatible with the pinned hrx-system and that all related issues are resolved.

Subproject commit 42b544465a019314f6757032d04c95ebdfa8ffd6

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