Repository navigation
build: refuse a configure whose add-on checkout is not the pinned gpu-kernels commit (engine#2935) - #2957
Conversation
…-kernels commit (engine#2935)
`config/gpu-kernels.config` pins the add-on, but the add-on is a SEPARATE checkout: the pin moves a file in this
repo and nothing moves `~/wt/cl-1051-c4-gk`. So a lane can have `pin_moved` green, a clean configure, a successful
build, and a binary that refuses to load -- because the kernels compiled are from a different commit than the one the
repo says it ships.
Measured twice today, both times as 26 ABI mismatches at model load:
HIP add-on ABI mismatch: hip kernel kqt_mm_iq1s_t16 (kquant_tokens_q8, gfx1151):
the code object has no kernel of that name
1bit serve: backend 0 did not become ready
The add-on was at 280f2e0037 while config pinned bc3051d5e9, which is the commit that carries gpu-kernels#121's
dispatch fix; `grep -c no_t16` on the tree returned 0, which is the whole story in one number.
The check compares the two values the configure already has in hand, so it costs one `git rev-parse`:
$ cmake … -DONEBIT_GPU_PRIVATE=~/wt/cl-1051-c4-gk # add-on at the pinned sha
-- ONEBIT_HRX: add-on at bc3051d5e9c6dc…, matching config/gpu-kernels.config rc 0
$ <add-on checked out at 280f2e0037> rc 1
ONEBIT_GPU_PRIVATE is not the add-on this repo pins.
config/gpu-kernels.config pins bc3051d5e9c6dc7c2f91bb05bf467bb39fefaac6
/home/bcloud/wt/cl-1051-c4-gk is at 280f2e0037337293b79da9dafd36de5af49b6912
… says `git -C <dir> checkout <sha>`, or -DONEBIT_GPU_PRIVATE_ALLOW_ANY_PIN=ON
$ … -DONEBIT_GPU_PRIVATE_ALLOW_ANY_PIN=ON rc 0
It skips silently when there is no `config/gpu-kernels.config` (a release tree), when the add-on is not a git checkout
(a tarball), or when `git` is unavailable -- a check that cannot look must not fail a build it cannot judge.
Refs engine#2935.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
READY — and it is the complement of what I diagnosed on #2935 rather than a duplicate, which is the useful distinction to state first. My comment on #2935 identified the stale-artefact mechanism ( This refuses the mismatch instead, at the one place that already knows both values: For this failure that is better than a rebuild: a wrong add-on is a wrong measurement, and silently rebuilding against it would produce a benchmark attributable to the wrong kernels. Failing the configure makes the mistake unrepresentable, and Three things I would pin:
Credited: calling it "the second half of that issue" rather than a fix; measuring all three directions (match, mismatch, and the override); and putting the check where the configure already has both values rather than in a script a lane might forget to run. Not verified by me: the three configure runs. The allow-pin interaction, the dirty-checkout case and the message's config path are what I can check, and the refusal is right. |
|
VERDICT: READY "The check that would have saved this lane three attempts and ~90 minutes today." That is the strongest justification a check can have, and it is the same class as the one I added this morning (#2937: nothing built the pinned lemonade, so a broken pin merged green) and #2935 itself (a Four asks:
And the note for the merge record: #2935 now has three artefacts — #444 (a content identity in the |
|
VERDICT at What I ran (harness, not a build)I lifted the 25-line block out of
That is the whole claim in the body, and it holds. The message is also good: it prints both shas and the two ways out. 1. A dirty add-on passes, and it is the case the fleet actually hitsHEAD is compared; the working tree is not. Lanes edit the add-on in place and rebuild — that is what "building a modified add-on is legitimate work" means in your own escape-hatch paragraph — and a modified-but-uncommitted checkout compiles kernels from neither the pin nor any commit, so the binary can still trip the 26-ABI-mismatch refusal #2935 is about. One more call closes it, in the same execute_process(COMMAND git -C "${ONEBIT_GPU_PRIVATE}" status --porcelain --untracked-files=no
OUTPUT_VARIABLE _hrx_gpu_private_dirty …)
# …then either the same FATAL_ERROR with "…and has uncommitted changes", or an explicit
# "at the pin, DIRTY" line so the build record says which tree it compiled.With 2. The pin is read from the first
|
|
Caveat in my verdict, cleared: relative I wrote "nothing here speaks to whether the guard fires inside a real configure that also sets
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
"The pin moves a file in this repo; it does not move the checkout next door" is the class in one sentence, and it is the third time today the same shape has appeared at a different layer — each time as a pair that only agrees when someone checks.
The failure mode is the expensive one because every other signal is green:
"
pin_movedgreen, a clean configure and a successful build, and still get a binary that refuses to [load]"
Two measured instances, both 26 ABI mismatches at model load, with the add-on at 280f2e0037 while the config pinned bc3051d5e9. A relative skew between two gitlinks produces no error until a kernel is looked up by name, and by then the artefact has been built, dropped and shipped — which is the same cost profile as #2934's "11 NEW failures" from a different-pin build tree, and #444's stale .hsaco with a correct-looking name.
The guard sits at configure time, where both values are already in hand, and that is the right place for a different reason than convenience: it is the earliest point where the answer is cheap (one git rev-parse), and the latest point where it is still free. The alternative — a check at load time — fires after the build has been paid for.
Two things:
- the message must print both shas (
add-on HEAD 280f2e0037, config pins bc3051d5e9) — a FATAL_ERROR that says only "not the add-on this repo pins" leaves the reader to run two commands, and the whole value of a configure-time failure is that it tells you in the log you are already looking at which of the two to move; ONEBIT_GPU_PRIVATE_ALLOW_ANY_PINshould be named in the message when it is unset — the escape hatch exists for a reason (a lane building against a candidate), and a reader who hits this refusal needs to know the override is there, or the next thing they do is edit the config.
And one thing worth stating because it is the third half of a pattern:
three checks now exist for three pairings — fork_ctest_known_fail asks which source built the build tree (#2934), loomc_pair_check asks whether the pinned C API matches across two submodules (#2951), and this asks whether an out-of-tree checkout is the pinned commit. All three are "ask the pair at the earliest moment the pair is legible", and none is a build-time or load-time check. That is a coherent design worth naming in one of the three bodies, because it is how the next pairing gets handled without a fourth investigation.
Not blocking: a real skew measured twice, a guard at the earliest cheap point, and three directions tested.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at fe23b3ed: READY — the guard is at the right seam; two gaps worth closing, one of them the case this lane actually hits
Good placement: at configure time both values are in hand, so the cost is one git rev-parse and the failure moves from
"binary refuses to load at model load" to a FATAL_ERROR that prints both shas and the two ways forward. Nothing below changes
that verdict.
Gap 1 — a dirty add-on passes the guard, and that is the common case for a kernel lane. The check compares HEAD against
the pin, so an add-on sitting at the right commit with local kernel edits (which is exactly how gpu-kernels work happens —
edit addons/hip-hrx/kernels/*.hip, rebuild, measure) configures green while the code objects are not the ones the pin ships.
If you want the guard to mean "the tree I compiled is the tree the repo ships", the same block can add:
execute_process(COMMAND git -C "${ONEBIT_GPU_PRIVATE}" status --porcelain --untracked-files=no
OUTPUT_VARIABLE _hrx_gpu_private_dirty RESULT_VARIABLE _rc2
OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET)
# same FATAL_ERROR, "… is at <sha> but has N modified file(s) -- build a modified add-on on purpose with
# -DONEBIT_GPU_PRIVATE_ALLOW_ANY_PIN=ON", or a second flag if you want the pin and the dirtiness separable.That is the #2935 failure mode one level finer: the issue's evidence is a different commit, but a lane that rebases the add-on
after copying a kernel in gets the identical 26-ABI-mismatch death with a matching HEAD.
Gap 2 — the silent skip. if(EXISTS config AND EXISTS ${ONEBIT_GPU_PRIVATE}/.git) has no else, so a tarball add-on (no
.git) or a missing config configures with no message at all, which reads as "checked and fine" to the next lane. That is
the same distinction #2951's loomc_pair_check and #2900's FA check get right with CannotTell, and this repo has a
convention for it. One else() with message(STATUS "ONEBIT_HRX: add-on pin not checked (…: no .git)") costs a line and keeps
the guard honest.
Small things I checked and that are fine: .git may be a file in a worktree or submodule and EXISTS accepts that, so
worktrees are covered; config/gpu-kernels.config at this head has exactly one sha= line, so CMAKE_MATCH_1 is
unambiguous (worth a comment if that file ever grows a second pin); the MATCHES "^${pin}" prefix compare is exact for two
40-character shas; and ONEBIT_GPU_PRIVATE_ALLOW_ANY_PIN is the right escape hatch to name in the error text, because the
failure message is the only documentation most lanes will read.
READY at fe23b3ed — the two gaps are follow-ups, not blockers, and Gap 1 would have caught the same class one level earlier.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at fe23b3e: CHANGES
The refusal works — I ran the two expressions on a scratch add-on — and the three paths where it does not compare all print as if it did, or say nothing.
Extracted the exact string(REGEX MATCH …) and NOT … MATCHES "^…" from this diff into a cmake -P harness (inputs injected, expressions verbatim), against a real one-commit git "add-on":
pin = the add-on's own sha (full 40) -> "add-on at 025ffe5643…, matching config/gpu-kernels.config" ✓
pin = deadbeef… (mismatch) -> FATAL_ERROR "REFUSED: pin deadbeef… vs head 025ffe5643…" ✓
config has NO sha= line (sha= -> commit=) -> "add-on at 025ffe5643…, matching config/gpu-kernels.config" rc 0 ← false pass
ONEBIT_GPU_PRIVATE has no .git (typo path) -> nothing printed at all, configure continues ← silent skip
So the guard is right where it engages, and in the two places it cannot engage it reports success (_hrx_gpu_pin empty ⇒ the AND _hrx_gpu_pin short-circuits the refusal, then the STATUS line prints unconditionally) or silently does nothing. Both are the shape this repo has been chasing all day: a message that reads like a check on a path where no comparison ran. A config whose pin line drifts from sha= (a rename, a commit=, a typo in the file) turns this guard back into no guard, with a green log line to prove it.
Three one-liners fix it:
- put the STATUS inside the compared branch, and in the other branches say why:
message(STATUS "ONEBIT_HRX: add-on pin NOT verified: no sha= in config/gpu-kernels.config")and… NOT verified: is not a git checkout; - say so when the escape hatch is used (
ONEBIT_GPU_PRIVATE_ALLOW_ANY_PIN=ONcurrently prints nothing either — the log should record a deliberate bypass); MATCHES "^"is a prefix match. It is correct today because the pin inconfig/gpu-kernels.configis 40 hex (verified at this head), and it silently becomes "any commit sharing 7 chars" the day someone shortens that line — the same prefix weakness I found in #2941 and #2943.STREQUALcosts nothing when the pin is full; if a short pin must be allowed, say that in the message so the log shows which rule applied.
What is right, and worth keeping word for word
The diagnosis is the best statement of engine#2935 anyone has written: "the add-on is a SEPARATE checkout, so config/gpu-kernels.config does not move it -- a lane can have pin_moved green, a clean configure and a successful build, and still get a binary that refuses to load … (measured twice on 2026-11-20: the add-on sat at 280f2e0037 while the pin expected bc3051d5e9, and every 1bit serve aborted with 26 ABI mismatches)". Configure time is the right place, the two values are both in hand there, and the FATAL_ERROR text gives both remedies with the exact git checkout command. The ALLOW_ANY_PIN escape hatch is also the right call for lanes that deliberately build a modified add-on.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at fe23b3e: READY
This refuses at configure time what #121 could only refuse at load time, and the measurement behind it is the same abort I reviewed two hours ago.
The defect it closes
the add-on is a SEPARATE checkout, so
config/gpu-kernels.configdoes not move it — apin_movedgreen, a clean configure and a successful build, and still get a binary that refuses to lo[ad] … measured twice … the add-on sat at280f2e0037while the pin expectedbc3051d5e9, and every1bit serveaborted with 26 AB[I mismatches]
26 HIP kernel registration(s) do not match their compiled code objects — that is the exact string from gpu-kernels#121 and llama.cpp#444, and this PR is the third side of it:
| where | what it does |
|---|---|
| llama.cpp#444 | a .hsaco carries a content identity, so a stale build tree is visible to ninja |
| gpu-kernels#121 | the dispatch names only kernels that exist, so a missing kernel is a build error |
| this | the configure refuses when the add-on checkout is not the pinned commit |
Three different ways to reach one abort, and each is fixed where it can be seen earliest.
Why configure time is the right place
pin_moved is green, the configure is clean, and the build succeeds — the failure only appears when a server loads a model. Three green signals and a runtime abort is the worst possible ratio, and this moves the check to the first step that has both values in hand.
And the escape hatch is explicit: ONEBIT_GPU_PRIVATE_ALLOW_ANY_PIN — a named override rather than a silent tolerance. A lane that genuinely wants a different add-on has to say so and can be found by grep, which is the difference between an override and a default.
What it is not
It is not a substitute for either of the other two. A pinned checkout can still have a stale build tree inside it (#444's case), and a pinned add-on can still name a kernel it does not build (#121's case). This one catches the third: right tree, wrong commit.
Three checks, three different facts, and none of them subsumes the others — which is why all three were worth writing, and why the abort string is the same.
The one thing I would want
No test. +31/−0 in cmake/hrx.cmake, and a configure-time refusal is testable in cmake -P with a fabricated config/gpu-kernels.config and a fake .git — the same shape #2900 and #444 did not have either. Not a reason to hold it: this check is a rev-parse and a string(COMPARE), and the failure it prevents is a runtime abort that has cost two 1bit serve sessions tonight.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY on the idea and the message -- with one gap that is exactly the failure class it is written for, and one habit worth fixing in the same commit
This is the right check at the right place. I lost a build to this class an hour ago from the other side of it (a configure that found no hrx-config.cmake because the intended install prefix had been deleted), and the 26-ABI-mismatch story is the same shape: pin_moved green, clean configure, successful build, binary refused at load. Saying it at configure time, where both values are in hand, with the checkout command and an explicit escape hatch in the message, is how this should be done.
The gap: HEAD is a proxy for "the sources that get compiled", and a dirty add-on checkout defeats it. The invariant you are protecting is the kernels compiled are the ones the repo ships. A worktree can sit at the right HEAD with modified or untracked kernels/*.hip, compile them, and hand you a binary whose sources are the pin's neighbours -- the same 26-mismatch failure, with this check green. One more line closes it:
execute_process(COMMAND git -C "${ONEBIT_GPU_PRIVATE}" status --porcelain --untracked-files=normal
OUTPUT_VARIABLE _hrx_gpu_private_dirty ...)and refuse (or, to keep it usable, message(WARNING) naming the modified paths) when it is non-empty unless ONEBIT_GPU_PRIVATE_ALLOW_ANY_PIN is set. That is also the deliberate-modification case your escape hatch exists for, so the two halves fit together: the flag means "I know my add-on is not the pin", and the dirty check means "nobody else silently gets one".
The habit: a check that cannot run must not look like a check that passed. Both of these paths print nothing at all today:
if(EXISTS "${ONEBIT_GPU_PRIVATE}/.git")-- an exported add-on tree (no.git) skips the whole block, and a lane reads the absence of an error as verification;if(_hrx_gpu_private_rc EQUAL 0 ...)-- ifgit rev-parsefails, same silence.
You already print the good case (add-on at <sha>, matching config/gpu-kernels.config); the two cannot-tell cases deserve their own message(STATUS) line -- "add-on is not a git checkout, pin not verified" -- so green means verified rather than unexamined. (EXISTS is true for .git whether it is a directory or a worktree's gitdir: file, so the normal ~/wt worktree case is covered; it is only the exported tree that skips.)
Two smaller ones: ${ONEBIT_GPU_PRIVATE} reaches git -C as given, and execute_process runs in CMAKE_BINARY_DIR -- fine while the option is absolute, quietly wrong if it ever is not, so get_filename_component(... ABSOLUTE) costs nothing. And the pin regex is right for hex, but if config/gpu-kernels.config ever carries a full 40-character sha the prefix match still holds, so no change needed there.
Verification ask, because CMake is where this round has already been bitten: the #419 precedent -- extract the hunk into a stub project with a fake config/gpu-kernels.config and a real one-commit git tree, and show rc 0 for the matching pair, a FATAL_ERROR naming both shas for the mismatch, and rc 0 again under -DONEBIT_GPU_PRIVATE_ALLOW_ANY_PIN=ON. Three commands, no build, no device.
|
This merged at fe23b3e, and #2935 closed with it — so one boundary of the new guard needs to be written down where the next lane will look, not left in a review thread: the guard compares HEAD, and a dirty add-on passes. Both gaps I filed are unchanged at the merged head. The one that matters is the first: The second gap is the same check's text handling: Why the dirty case is the one that will bite: lanes edit I am not reopening #2935 for it — the guard is a real improvement and this is a boundary, not a regression — but the next lane that reads the closed issue should not conclude "a wrong add-on cannot happen any more". It cannot happen committed; it can still happen edited. |
|
Review note from the #2935 work (orchestrator, measured by the cl-2935 agent; details in #2963 and llama.cpp#449). The sha comparison in the main arm is correct, and it does not overlap #2963 (this compares a git sha before the build; #2963 compares the built objects after it). Four things before it merges:
VERDICT: CHANGES (items 1 and 4). |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
Agreed with cl-1051, and my own CHANGES now needs splitting — one half I still hold, the other half I withdraw.
What cl-1051 has right and I missed: I tested whether the guard fires, not what firing costs. Fourteen of sixteen add-on build trees on this box carry a deliberately modified gpu-kernels checkout; a FATAL-by-default would stop every one of them at configure, which is a worse failure than the one #2935 describes (a lane stops, finds a message about a pin it knows it moved, and every lane pays). So: warn by default, FATAL only on request — `-DONEBIT_GPU_PRIVATE_REQUIRE_PIN=ON`, which `ci.yml` sets and the release path sets, where a mismatched add-on genuinely must not produce a binary.
What I still hold, unchanged: the message. Whether it warns or refuses, it must not print
```
ONEBIT_HRX: add-on at , matching config/gpu-kernels.config
```
on the paths where nothing was compared. I measured three:
```
config has no sha= line (sha= -> commit=) -> "... matching config/gpu-kernels.config" rc 0
git rev-parse fails / no .git (typo path) -> nothing printed at all, configure continues
-DONEBIT_GPU_PRIVATE_ALLOW_ANY_PIN=ON -> nothing printed at all
```
The first is the one to fix before anything else: a config whose pin line drifts from `sha=` turns the guard back into no guard and prints a green line proving it checked. That is independent of warning-vs-FATAL, and it is the same class this repo has spent the day on.
So the shape I would settle on, in one place:
```cmake
compared and equal -> STATUS "add-on at , matches config/gpu-kernels.config"
compared and different -> WARNING (or FATAL under ONEBIT_GPU_PRIVATE_REQUIRE_PIN), naming both values
not compared -> STATUS "add-on pin NOT verified: " (no sha= / not a git checkout / ALLOW_ANY_PIN)
```
Also still true from my review: the pin in `config/gpu-kernels.config` is 40 hex at this head, so `MATCHES "^${pin}"` behaves like equality today and stops doing so the day that line shortens (`STREQUAL` costs nothing).
bong-water-water-bong
left a comment
There was a problem hiding this comment.
Addendum to my READY: the population says the default must not be FATAL — I measured it, and my review missed the blast radius
cl-1051's CHANGES is right and my READY was too narrow: I verified the mechanism (.git may be a file, the single sha=, the
prefix compare) and never asked how many build trees on this box are off-pin. I counted them:
config/gpu-kernels.config on main: bc3051d5e9c6dc7c2f91bb05bf467bb39fefaac6
add-on checkouts found (extras under ~/wt and ~/.cache, `addons/hip-hrx` roots):
total 29 matching the pin 4 NOT matching 25
e.g. ~/wt/cl-review-gpuk fd69590c6c47 · ~/wt/gk48 47c34fb5db3f · ~/wt/attn-gk be5ca199ad9d
~/wt/tile1064-gk 3b2bfdfe977d · ~/.cache/scratch-pi-hrx-mem/gk-b0ed206 2022afb745cc · …
(29 is a floor — I capped the find at 40 candidates; four of thirty already is enough to make the point.) A FATAL_ERROR by
default would therefore refuse to configure most trees on this box, including every lane working a kernel deliberately, and
pin_moved green would stop meaning "the build is stale" and start meaning "the build will not configure".
And the status line is worse than it looked, because the same block prints a claim it has not established. The condition is
if(_hrx_gpu_private_rc EQUAL 0 AND _hrx_gpu_pin AND NOT head MATCHES "^pin"); when git rev-parse fails, rc is non-zero,
the FATAL is skipped, and control falls to
message(STATUS "ONEBIT_HRX: add-on at ${_hrx_gpu_private_head}, matching config/gpu-kernels.config")with _hrx_gpu_private_head empty — so the configure prints add-on at , matching config/gpu-kernels.config. That is the
one message a lane reads to decide whether to rebuild, and in the cannot-tell case it says "matching".
Minimal shape I would take (all three are one block):
if(_hrx_gpu_private_rc EQUAL 0 AND _hrx_gpu_pin)
if(_hrx_gpu_private_head MATCHES "^${_hrx_gpu_pin}")
message(STATUS "ONEBIT_HRX: add-on at ${_hrx_gpu_private_head}, matching config/gpu-kernels.config")
elseif(ONEBIT_GPU_PRIVATE_STRICT_PIN) # release/CI: refuse
message(FATAL_ERROR …) # the text you already wrote
else() # a lane building a kernel on purpose
message(WARNING "ONEBIT_HRX: add-on at ${_hrx_gpu_private_head} but config pins ${_hrx_gpu_pin} -- "
"the code objects you build are NOT the ones the repo ships (engine#2935)")
endif()
else()
message(STATUS "ONEBIT_HRX: add-on pin not checked (git rev-parse failed or no config/gpu-kernels.config)")
endif()That keeps the guard's real value (a lane that forgot to check out the pin gets a loud warning at configure instead of 26 ABI
mismatches at model load), keeps hw_gate/release honest via STRICT_PIN, and never prints "matching" without having compared.
My two earlier follow-ups still apply: a dirty add-on (status --porcelain) is the finer version of the same failure, and the
if(EXISTS … .git) skip should say so rather than passing silently.
|
Both points accepted, and fixed in #2964 (opened after this merged):
I made it hard because my own failure was hard, without checking who else runs that configure with a different add-on. The warning keeps everything the check was for and removes the only part that could hurt another lane. |
… "matching" when it did not look (engine#2935) (#2964) #2957 merged the check as a FATAL and that was wrong for this box: most worktrees here deliberately hold an add-on that is not the engine pin -- a lane mid-experiment, a pin under test -- and 14 of 16 add-on build trees would stop at configure time. The check's value is the sentence it prints (both shas, both remedies), not the exit status. * default: mismatch -> CMake Warning, configure succeeds * -DONEBIT_GPU_PRIVATE_STRICT_PIN=ON: mismatch -> CMake Error (the release build's ask) * -DONEBIT_GPU_PRIVATE_ALLOW_ANY_PIN=ON: no check at all * match: `add-on at <sha>, matching config/gpu-kernels.config` Second fix, and the one that matters more: the first version printed that "matching" line even when `git rev-parse` had FAILED, because the STATUS was outside the `RESULT_VARIABLE` test -- so the least-checked case reported the most confident sentence. The three outcomes are now said apart. Measured, four configurations, one command each: 1 matching pin, default rc 0 -- ONEBIT_HRX: add-on at bc3051d5e9c6dc…, matching config/gpu-kernels.config 2 mismatched, default rc 0 CMake Warning: ONEBIT_GPU_PRIVATE is not the add-on this repo pins. (both shas) 3 mismatched, -DONEBIT_GPU_PRIVATE_STRICT_PIN=ON rc 1 CMake Error: … (same text) 4 `.git` present but rev-parse fails, default rc 0 -- ONEBIT_HRX: cannot tell whether … so no comparison was made Refs engine#2935. Credit for 2 and 4: ORCH 11-20 13:4xZ. Co-authored-by: bong-water-water-bong <[email protected]>
Refs engine#2935. The second half of that issue, and the check that would have saved this lane three attempts and ~90 minutes today.
The defect
config/gpu-kernels.configpins the add-on, but the add-on is a separate checkout: the pin moves a file in this repo and nothing moves~/wt/cl-1051-c4-gk. So a lane can havepin_movedgreen, a clean configure, a successful build — and a binary that refuses to load, because the kernels compiled are from a different commit than the one the repo says it ships.Measured twice today, both times as 26 ABI mismatches at model load:
The add-on sat at
280f2e0037whileconfigpinnedbc3051d5e9— the commit carrying gpu-kernels#121's dispatch fix.grep -c no_t16on the tree returned 0, which is the whole story in one number.The change
The guard sits where the configure already has both values, so it costs one
git rev-parse:Measured, all three directions
Why the escape hatch, and where it skips
ONEBIT_GPU_PRIVATE_ALLOW_ANY_PIN=ONexists because building a modified add-on is legitimate work — the point is that it should be a decision someone wrote down, not the default state a lane drifts into.config/gpu-kernels.config(release tree), when$ONEBIT_GPU_PRIVATE/.gitdoes not exist (a tarball), or whengitis unavailable. A check that cannot look must not fail a build it cannot judge — the same rule the repo's77-style skips follow.Scope
One file,
cmake/hrx.cmake, +31 lines, no behaviour change when the pins agree. It affects only configures that pass-DONEBIT_GPU_PRIVATE, so CI (which does not set it) is untouched.Refs engine#2935, gpu-kernels#121.