Repository navigation
box.sh: local mode (BLOOMERY_BOX_LOCAL=1): the box command runs in this tree on a contributor's machine with a card of its own - #38
Conversation
|
Thank you. I am reviewing this now and will reply with findings or put it in the next landing train. |
|
Review done: the remote path is unchanged when the variable is unset (we compared 20 cases through a fake ssh/rsync against main: same argv, output and rc). One request before it lands: |
7ed4301 to
46fcf21
Compare
|
Done. It is On
#39 is rebased on it and is now I did not re-run the root container runs on either branch. On the box, local mode stops before it reads the |
… and decision share one expansion serve::media::expand_spans (each placeholder run of the prompt ids expanded to its image's token count, a placeholder carried in text refused by name) moves with Expanded and ExpandError to crates/vision/src/media.rs, the model-generic owner beside MediaModel, so the decision crate can call it without a serve dependency. serve calls it and maps ExpandError into MediaError. A move: serve's gates unchanged and green. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… as the release does (vision R4c-b) - request: images in llama.cpp's order (the request's `images`, then the state's image_url parts), each a data URL, at most 8; the state comes back without those parts. videos stays 501, a non-data URL and a ninth image stay 400. The request is valid with images; encode and the label model refuse them by name (NotSupported, llama.cpp's hint), so today's seats answer as before. - encode_media(tok, req, &dyn MediaModel, counts, max): the media piece is the placeholders and a "\n" tokenized in one call, each pad run expanded to its image's count through vision::media::expand_spans; Encoded.image_spans names them; fixed counts the media ids; a placeholder in text and media ids past the context are refused by name. - gate-decision-clef: hw_clef_image_ids_equal_the_release — every set D request's input_ids equal the release's, list for list (6 of 6). Set D (images.jsonl) states no identity, so this clause reads it raw beside the same run's reference.jsonl (its revision equals clefvis.sh's, its ids equal) — a substitute for a family check until the writer states one. FAIL-first: D3 (no "\n" after the last image) red on the box at c1 234, c2 1108, c3 234, i640 338, i1024 806; D1 and D2 red in host tests (set D has no state image part to catch them). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ile, from the listing or the verified cache Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eat flags and projector, the encoder reserve in the whole-fit verdict (qwen35_open::open_seated), Body35's media hidden call, the image refusals by name Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s with the encoder, 501 with llama.cpp's hint without it, the image 400s, the --hf projector pick Co-Authored-By: Claude Opus 5.5 <[email protected]>
… open_tower open a seat's projector and tower for any serve seat, merged_cells and Flags::wanted beside them (span_rows loses its rows_of parameter); image_plan holds the plan's side of an image input free of the encoder crates (the tower's reserve on the stage card, the refusal that names it, the rotation table's bytes per position) so every build's placement can take it; ds41's seat opens through them Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nd prefill_media in serve_seats/qwen3, the tower's reserve and the rotation tables in qwen3moe's placed plan and whole fit (each named in the ctx and whole-fit lines), the &VISION record; gate_qwen3_serve's --images clauses: set E prompt ids, set F chat inside the CUDA/CPU agreeing prefix with a first divergence only at a near tie (PIN F_NEAR_TIE 0.1), an image slot beside a text slot, the refusals and the plan's reserve, each FAIL-first by its own mutant Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ion_seat::open_seat takes the file the seat resolved (the decide seat's --hf pick), open_tower, merged_cells; the whole-fit line's encoder note has one owner, image_plan::note Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the gates that reach it, the Qwen3.6 image clause's plan budget has its defaults twin, rustfmt Co-Authored-By: Claude Opus 5.5 <[email protected]>
…is tree on a contributor's machine with a card of its own - docs/contrib/local-check.md rows 1, 3, 4, 5 and 7. No ssh and no rsync: bash runs the same command line in this tree, guard and profile and exports included. The environment file is BLOOMERY_ENV_FILE (default ~/bloomery-env.sh; missing: 69). Refused (64) on a host that is not Linux, with BLOOMERY_BOX_QUEUE=1, and where /root/bloomery-cpu.lock exists. - BLOOMERY_LOCK_DIR (tools/ref/lease-probe.sh's LOCK_DIR, /root when unset) holds the timing lease, the holds, the gate locks, the V4.1 load lock and queue and the batch hold. Local mode defaults it to ~/.cache/bloomery/locks and makes it. It refuses (64) a relative path, which two trees would read apart, and /root however it is spelled, where its guard would make the box's lease file; an environment file or BLOOMERY_BOX_ENV that moves it after the guard is refused (64), and so is an environment file's BLOOMERY_ARCH other than the one the recipe expanded. lease-probe.sh's holds glob and give-way check and gpu-gate.sh's lock descriptors take the path whole, so a path with a space or a ; works. - lease-probe.sh owns the box's mark: on_box (/root/bloomery-cpu.lock exists) and box_lock_dir (a directory that is /root). box.sh, gpu-gate.sh and lease_take read them. - gpu-gate.sh: BLOOMERY_BOX_CARD=local takes one lock, bloomery-gate-local.lock, for what the machine shows, and leaves CUDA_VISIBLE_DEVICES as it finds it; its lock directory is never /root (64). `both` in BLOOMERY_CARD or BLOOMERY_GATE_CARD is refused (64); a held lease is waited for as the lock is. On the box, BLOOMERY_BOX_CARD=local and a BLOOMERY_LOCK_DIR other than /root are refused (64), as lease_take refuses another lease file there. - CUDA_OXIDE_BACKEND is unset after the environment file (row 7), so cargo oxide builds and keeps its own backend (no rc 70 check). BLOOMERY_REMOTE adds no CARGO_BUILD_JOBS. - The command runs without the variables box.sh reads on this side (BLOOMERY_MODEL above all: the model crate's tests read it as a model path), without box.sh's own outputs (BLOOMERY_REF_MODEL_PROFILE, the fixture tier's BLOOMERY_CARD_BUDGET and BLOOMERY_FIXTURE_MODEL) and without the lease's file names, as over ssh. - box-gc.sh refuses (64) local mode: its root is then the contributor's tree, whose binaries are their own runs. - Unset or 0 leaves the ssh, rsync and queue arguments box.sh builds byte-identical, direct and queued. - card-tests: the local mode cases, the lock directory (two holds' give-way under a path with a space among them), the refusals, LOCAL=0 against unset, and on the box gpu-gate.sh's box refusals; the helpers drop the new variables a caller in local mode would pass. gpu-gate.sh --self-test: the local lock, the V4.1 load lock, a held lease. FAIL-first: against main's box.sh, gpu-gate.sh, lease-probe.sh, lease.sh and box-gc.sh, 27 card tests are red. With gpu-gate.sh's local arm removed the self-test's six local cases are red, and with take_local not reading the lease its lease case is red. On a stand-in for the box (a root container where /root/bloomery-cpu.lock exists), removing gpu-gate.sh's box refusal turns its two card tests red.
46fcf21 to
963a7ff
Compare
|
I moved this branch to its commit in our 0.3.0 release train (the same change, rebased onto main). It lands with the release tonight and will show as merged. |
…e on their own machine, with local mode (midagedev#38), single-card timing (midagedev#39) and aarch64 T1 (midagedev#83) as built The page says what to run on a Mac, on Linux with no card and on Linux with an NVIDIA card, and what each result shows. The box assumptions table moves to a reference section with a state column; its two counts do not reproduce at the commit that wrote them, so each is struck through beside the count at 3bc2a17 and its command. The open questions keep their numbers, 2 and 3 marked answered and midagedev#38's question 2 added as 4.
…e on their own machine, with local mode (midagedev#38), single-card timing (midagedev#39) and aarch64 T1 (midagedev#83) as built The page says what to run on a Mac, on Linux with no card and on Linux with an NVIDIA card, and what each result shows. The box assumptions table moves to a reference section with a state column; its two counts do not reproduce at the commit that wrote them, so each is struck through beside the count at 3bc2a17 and its command. The open questions keep their numbers, 2 and 3 marked answered and midagedev#38's question 2 added as 4.
…e on their own machine, with local mode (midagedev#38), single-card timing (midagedev#39) and aarch64 T1 (midagedev#83) as built The page says what to run on a Mac, on Linux with no card and on Linux with an NVIDIA card, and what each result shows. The box assumptions table moves to a reference section with a state column; its two counts do not reproduce at the commit that wrote them, so each is struck through beside the count at 3bc2a17 and its command. The open questions keep their numbers, 2 and 3 marked answered and midagedev#38's question 2 added as 4.
…e on their own machine, with local mode (#38), single-card timing (#39) and aarch64 T1 (#83) as built The page says what to run on a Mac, on Linux with no card and on Linux with an NVIDIA card, and what each result shows. The box assumptions table moves to a reference section with a state column; its two counts do not reproduce at the commit that wrote them, so each is struck through beside the count at 3bc2a17 and its command. The open questions keep their numbers, 2 and 3 marked answered and #38's question 2 added as 4.
…s what its earlier commits earned A merged pull request is labelled from its merge commit against that commit's first parent. A rebase merge, the only kind this repository's merge button allows, has no merge commit: merge_commit_sha is the pull request's last commit, so the diff covers that commit alone, and the labels its open runs put on for the earlier commits came off at the merge. A merge now adds labels and removes none. Walking back the pull request's commits does not fix the diff: a stack pushed at once (#27, #36, #38, #39) lists every commit below it, so each would take the whole stack's labels.
What and why
Part of #13. This builds rows 1, 3, 4, 5 and 7 of the table in
docs/contrib/local-check.md, intools/box.shasBLOOMERY_BOX_LOCAL=1, as answer 10 indocs/contrib/dgx-spark.mdasks: the box command runs in this tree on acontributor's Linux machine with a card of its own, with no ssh and no rsync. The command line is the one
box.shcomposes for the box (guard, profile, tier,
BLOOMERY_ARCH, exports), run bybash -c, so everyjust gate-*reciperuns unchanged; the locks move under
BLOOMERY_LOCK_DIR, andtools/gpu-gate.shtakes one lock for the machine's card.Details
BLOOMERY_ENV_FILE, default~/bloomery-env.sh. A missing file exits 69.BLOOMERY_LOCK_DIRholds the timing lease, the holds, the gate locks, the V4.1 load lockand its queue, and the batch hold. It is
tools/ref/lease-probe.sh'sLOCK_DIR,/rootwhen unset, so the boxkeeps its paths. Row 4 asks for a lock directory variable, and the same variable moves row 3's lease and holds.
Local mode defaults it to
~/.cache/bloomery/locks, makes it, and exports it to the command.lease-probe.sh'sholds glob and its give-way check, and
gpu-gate.sh's lock descriptors, take the path whole, so a path with a spaceor a
;works.lease-probe.shnow owns it:BOX_LEASE(/root/bloomery-cpu.lock),on_box(that fileexists) and
box_lock_dir <dir>(the directory is/root, as spelled, or as it resolves when the shell can enterit, for
/root/.or a symlink).box.sh,gpu-gate.shandlease_takeintools/ref/lease.shcall them. The boxruns as root, and
on_boxreads/root: on the box, an account that cannot read/rootwould not see the mark, andits local mode would not be refused.
BLOOMERY_BOX_CARD=local.gpu-gate.shthen takes one lock,bloomery-gate-local.lock, for whatever card the machine shows, whenBLOOMERY_GATE_CARDis unset,3090,a6000or
any. It leavesCUDA_VISIBLE_DEVICESas it finds it: the caller's, or the environment file's when that filesets one. While the timing lease is held the run lets the lock go and polls on, as
anypasses a timing card by.BLOOMERY_CARD=bothandBLOOMERY_GATE_CARD=bothare refused (64), andBLOOMERY_GATE_CARD=localis refused asbefore.
CUDA_OXIDE_BACKENDis unset after the environment file is sourced, socargo oxidebuildsand keeps its own backend (no rc 70 check). A backend pinned in the environment file does not reach the build.
box.shreads on this side (BLOOMERY_MODELabove all, which the model crate's tests read as a model path, and thequeue selectors), without
box.sh's own outputs (BLOOMERY_REF_MODEL_PROFILE, and the fixture tier'sBLOOMERY_CARD_BUDGETandBLOOMERY_FIXTURE_MODEL) unlessbox.shexports them, and withoutBLOOMERY_LEASE_LOCKandBLOOMERY_LEASE_HOLDS, whichBLOOMERY_LOCK_DIRsets. The onesbox.shforwards areexported as on the box.
BLOOMERY_REMOTEnames no directory here and adds noCARGO_BUILD_JOBS=12(that value issized for the box).
environment file and
BLOOMERY_BOX_ENVrun. If either of them sets anotherBLOOMERY_LOCK_DIR, or the environmentfile sets a
BLOOMERY_ARCHother than the one the recipe expanded (this side'sBLOOMERY_ARCH,sm_86whenunset), the command stops with 64 before it runs.
just mac-static);BLOOMERY_BOX_QUEUE=1(thequeue is the box's); a relative
BLOOMERY_LOCK_DIR(two trees would take their locks in two places); aBLOOMERY_LOCK_DIRthatbox_lock_dircalls/root(the guard's probe would create/root/bloomery-cpu.lock, thefile that marks the box, and every later call in local mode would then be refused); the lock directory or the arch
moved by the environment file, as above;
BLOOMERY_CARD=both; and a machine whereon_boxholds (on the box, locksunder another directory would not keep local runs off the box's sittings and gates). That last message also says
that on a machine that is not the box, a lock script run as root without
BLOOMERY_LOCK_DIRmade that file, and toremove it. A lock directory that cannot be made exits 69. The
/rootrefusal is tested for/rootas spelled. Theresolved spellings (
/root/., a symlink) are untested: resolving them needs a shell that can enter/root, and myone root setup was the box stand-in below, where
on_boxrefuses first.on_boxholds,gpu-gate.shrefuses (64)BLOOMERY_BOX_CARD=localand aBLOOMERY_LOCK_DIRother than/root, aslease_takerefuses another lease file there. Without this,BLOOMERY_BOX_ENVon the box could pass a lock directory, with or withoutBLOOMERY_BOX_CARD=local, and move thegate locks, the batch hold and the lease probe away from the ones the box's gates and sittings take; the gate would
then run on a box card under a lock no other gate holds. The self-test's runs are not affected.
just box-gc.tools/box-gc.shrefuses local mode (64). There its root is the contributor's own tree, and--killwould end their own processes undertarget/(abloomery-servein another terminal, say). Its self-teststill runs from a shell in local mode.
just box-tracksis unchanged: it reaches the box with its own ssh, notthrough
box.sh.Not moved to
LOCK_DIR:tools/ref/dump-draft.sh:79andtools/ref/vision/dump-vision.sh:50open/root/bloomery-gate.lockby path. Theyare reference dump tools, so I left them (question 4).
tools/ref/lease.sh:298gives a lease a trace file (/root/bloomery-sittings.log) only when its file is/root/bloomery-cpu.lock, and:402-403print "is not the machine lease: nothing measured under it is admissible"for any other file. So a timing sitting in local mode takes its lease under
BLOOMERY_LOCK_DIR, writes no trace andis marked not admissible. The single-card timing pull request that follows this one handles both lines.
Four choices differ from the table or from section 3.4 of
dgx-spark.md, and I can change any of them:BLOOMERY_GATE_CARD=local:one lock under the lock dir). With one card the result is the same. On a machine with several cards, runs serialize
on the one lock: safe, but slower. A lock per UUID would need
gpu-gate.shto pick a card and setCUDA_VISIBLE_DEVICESitself.BLOOMERY_CARD=a6000, which then runs on themachine's card:
gate-gpu-ds41-residency-a, in the contributor list, asks for the A6000 to run placementa, and amachine whose card has the room (a DGX Spark has 128 GB of unified memory) can run it. A refusal in
box.shwouldhide that gate.
bothstays refused.CUDA_OXIDE_BACKENDunset.box.shgoes one step further and unsets it after theenvironment file is sourced, so a backend that file still exports (a copy of the box's file, say) does not reach the
build. The box's rc 70 check of
source-rev.txtgoes with the export:cargo oxidethen builds its backend from thepinned fork rev itself (
docs/BUILD.md:32), so there is no prebuilt backend to check.BLOOMERY_BOX_LOCAL=1is the name row 1 gives, becauseBLOOMERY_BOXalready names the ssh host;section 3.4's
BLOOMERY_BOX=localwould give a host name a special value. For the card, section 3.4 hasBLOOMERY_GATE_CARD=local; I usedBLOOMERY_BOX_CARD=local, whichbox.shsets.BLOOMERY_BOX_CARDis the cardbox.shput in view, and in local mode that is whatever the machine shows.BLOOMERY_GATE_CARDis the lock a gateasks for among the cards in view, and
tools/gate-batch.shsets it per lane throughBLOOMERY_BOX_ENV(
BLOOMERY_GATE_CARD=3090in lane A,a6000in lane B), which would replace alocalthe caller exported. UnderBLOOMERY_BOX_CARD=local,gpu-gate.shtakes the local lock whichever of3090,a6000oranythe gate asksfor.
Code shape
lease-probe.sh's onevariable, which
gpu-gate.shalready sources, and the box's mark islease-probe.sh's too.cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up.Duplication found or removed:
tools/ref/lease.sh:397and:1079tested[ -e /root/bloomery-cpu.lock ]inline onmain, and this change needed the same test in
box.shandgpu-gate.sh. All four now callon_boxintools/ref/lease-probe.sh, and the two/rootchecks call itsbox_lock_dir.tools/ref/lease.sh:298,:397and:402still compareLEASE_LOCKwith the literal/root/bloomery-cpu.lock(above, "Not moved").Questions
box.shreads on this side, its own outputs and the lease'sfile names, but any other variable in the caller's shell still reaches the command, a lever such as
BLOOMERY_FLASH_SIMD=0included. On the box the environment file is the only source. A wider rule would unset everyBLOOMERY_*butBLOOMERY_LOCK_DIR, so levers reach the command only throughBLOOMERY_BOX_ENVas on the box;another option prints the inherited
BLOOMERY_*names in one line. Do you want either?both. It is 64, a usage error. On a one-card machine a two-card gate is "cannot run here" ratherthan a caller's mistake, and T2 in
local-check.mdcounts a named refusal with rc 66 asDEFER, so a runner thatfollows T2 would count these as red. 66 already means a real-only deferral, and
box.shalso uses it whenBLOOMERY_BOX_READONLY=1finds no remote directory;contrib-check.shuses 69 for a missing prerequisite. I kept64. Should it be 66, 69 or another code?
lock:
waits for the gate lock (local), holding no lock, and at the boundno gate lock (local) was free. This iswhat
anyprints when it passes a timing card by. Should the line name the lease instead?dump-draft.shanddump-vision.shtake their gate lock underLOCK_DIRtoo, or staybox-only?
What I ran
Unless a paragraph says otherwise, everything below ran on this commit, upstream main
7e4fb051plus the change. Theruns on the box stand-in, the runs that break one mechanism at a time and the comparison with main's
box.shranbefore the rename of
BLOOMERY_ENVtoBLOOMERY_ENV_FILE. The rename does not touchgpu-gate.shor the ssh path,and on the box local mode is refused before the environment file is read. I could not run the gates
just affectedselects on the box; that run is yours.
Tests.
tools/ref/card-tests/run.shgains the local cases: the command line and its environment (run in the tree,the card
local, the locks and the data passed, no backend and no build jobs, none of whatbox.shread on thisside), the lock directory (its default, made when missing,
/rootrefused, a relative path refused, a path with aspace and a
;, the give-way of two holds under a path with a space,BLOOMERY_LOCK_DIRmoving the lease and theholds), an environment file that moves the lock directory or sets another arch, the backend unset, the refusals of
both, the queue, a host that is not Linux and a missing environment file,just box-gcrefused,BLOOMERY_BOX_LOCAL=0against unset, andgpu-gate.sh's local refusals and its lock path. Where/root/bloomery-cpu.lockexists they check the box refusals ofbox.shandgpu-gate.shinstead. The helpers thatdrive the box path drop the new variables, so the suite passes when it runs from a shell in local mode.
gpu-gate.sh --self-testgains six cases: the local lock forany(with the caller'sCUDA_VISIBLE_DEVICESpassedthrough) and for
a6000, the V4.1 load lock, the box's two locks held, the local lock held, the lease held.On a Mac with the pinned nightly (each
mac-staticstep's line cut after its time; the lint step counts 41warnings, the ratchet's 41):
On the DGX Spark host (Ubuntu 24.04.5, aarch64, GNU
flockandtimeout, no/root/bloomery-cpu.lock):tools/box-gc.sh --self-testprintsbox-gc self-test: 6 of 6 okthere both withBLOOMERY_BOX_CARDunset and withBLOOMERY_BOX_CARD=local.tools/ref/lease.sh --self-testpasses underLC_ALL=C; under the host's Korean locale onecase fails, on main as well (below, "What I ran into").
I have no box, so for the box-side tests I used a stand-in: a root container on the DGX Spark, with no card, where
/root/bloomery-cpu.lockexists. There the local cases turn into the box refusal cases:FAIL-first. With main's
box.sh,gpu-gate.sh,lease-probe.sh,box-gc.shandlease.shput back under thisbranch's tests, the card tests print
card-tests: 572 tests, 27 failedon the Mac andcard-tests: 563 tests, 27 failedon the DGX Spark host. On the Mac, with thelocalarm ofgpu-gate.sh's card pick removed, the self-test'ssix local cases fail (
gpu-gate self-test: 92 of 98 ok), and withtake_localnot reading the lease, its lease casefails (
gpu-gate self-test: 97 of 98 ok). On the box stand-in, withgpu-gate.sh's box refusal removed, both boxcases fail (
card-tests: 496 tests, 2 failed): a lock directory other than/rootreaches the lock open in thatdirectory (rc 69, where on the box the gate would have run under it), and
BLOOMERY_BOX_CARD=localis stopped only bythe local arm's
/rootcheck, whose message does not name the box.With
BLOOMERY_BOX_LOCALunset or 0,box.shbuilds the same ssh, rsync and queue client arguments as main's. I ranmain's
box.shand this one in one tree of main through stubssh,rsyncand queue client: 20 configurations, eachwith a build command, a read and
true, so 60 invocations a side. The configurations are direct,a6000,both, aninvalid card, wait and owner,
BLOOMERY_BOX_ENVwith tier and model,BLOOMERY_BOX_ENVwithCARGO_BUILD_JOBS,BLOOMERY_REMOTE=(the main tree), the fixture tier withBLOOMERY_FIXTURE_VARIANT=iq4xs, readonly, readonly witha6000, six queue forms (plain;BLOOMERY_Q_CLASS=leadwith carda6000and a prediction;a6000with the fixturetier; lane
none; laneany; readonly),BLOOMERY_ARCH=sm_121,BLOOMERY_ARCHthroughBLOOMERY_BOX_ENV, andBLOOMERY_MODEL. On every side 54 of the 60 run and 6 are refused as they should be (the invalid card, and a buildunder
BLOOMERY_BOX_READONLY=1). Main's log, and this branch's with the variable unset and with 0, are equal once therandom sync id, the backend rev, the temporary sync directory and the job name's random suffix are normalized.
On the DGX Spark, in the dev container, I ran the contributor list of answer 4 (
tools/gate-batch.sh --tier fixture --dry-run, 80 items) in the fixture tier, each item through its recipe'stools/box.shline withBLOOMERY_BOX_LOCAL=1. The tree was main at the time with #15 and #16 (both now on main) and an earlier version ofthis change, before the lock path quoting, the box refusals, the backend unset and the environment file checks; I
have not re-run the 80 items on this version. In short:
28 green: 16 crate test gates and 12 card gates on cc 12.1.
4 two-card gates refused by local mode (64).
1 red on a card name:
gate-gpu-qwen38-serve, where--place gateopens the 3090 by name.47 stopped on an input this machine did not have, each naming it: the reference sets, the V4.1 DSpark draft
fixture, the real model files at their box paths. In four of them, other tests are red for a reason that is not an
input:
gate-attn: 7 of its 8 red tests have no oracle under$BLOOMERY_DATA/ref; the eighth calls the x86 kernel,kq_dot_simd called off x86_64: no AVX2+FMA+F16C kernel in this build.gate-union: 4 of 5 miss a model file; the fifth isQ6_K has no row lanes on this CPU.gate-qdot: 22 of 33 miss a reference dump or a model file; 10 are clauses named for this CPU ("has no tilekernel on this CPU", "has no row lanes on this CPU", "no AVX2+F16C"), and
hw_lanes_refuse_bad_shapesfails on abare
assert_eqwith no name.gate-engram: 5 of 7 miss the V4.1 engram table;hw_engram_open_direct_reads_the_files_bytesfails itsO_DIRECTflag check on aarch64 with no name, andhw_engram_expert_stack_evicts_and_reads_backfinds 2 of 7pages still in the page cache after an eviction. I have not found the cause of the last one.
I have a separate small change that names the two unnamed Arm failures, and the per-item table (each item's exit
code, counts and first missing input), which I can post on dgx-spark: P0 builds and runs on a DGX Spark, with readings for the port map #13 if you want it.
Every run that reached
gpu-gate.shtook the local lock:gate-gpu-lib, one of the green crate test gates, runsbloomery-gpu's lib tests throughtools/gate.sh --oxidewith no gate lock, as its recipe does on the box.
What I ran into
This does not block the pull request. I'm writing it down because it cost me time, and you may want to change it.
tools/ref/lease.sh --self-testdepends on the locale. On a host whose locale is Korean (LANG=ko_KR.utf8, withthe Korean libc messages installed),
strerroris translated, and one case fails because its pattern expects theEnglish text:
main's
lease.shfails the same way, and underLC_ALL=Cthe self-test passes. Two ways out: the self-test couldset
LC_ALL=Citself, or the case could match the path and the tail of the line without thestrerrortext.Hardware
DGX Spark: NVIDIA GB10 (compute capability 12.1), driver 595.84, CPU Cortex-X925 and Cortex-A725 (20 cores), 128 GB
unified memory, Ubuntu 24.04.5 LTS (DGX OS 7.6.0), kernel 6.17.0-1032-nvidia. The script tests ran on the host. The
dev container has the CUDA 13.3.1 toolkit, LLVM 21.1.8 and the pinned nightly; the 80 items ran there, the kernels as
sm_86PTX through the driver's JIT (answer 7).Docs
I did not change the docs. Spots this makes stale (line numbers at
7e4fb051):docs/contrib/local-check.md:72,:74to:76and:78, the table's rows 1, 3, 4, 5 and 7: built, intools/box.sh(BLOOMERY_BOX_LOCAL),tools/ref/lease-probe.sh(BLOOMERY_LOCK_DIR) andtools/gpu-gate.sh(
BLOOMERY_BOX_CARD=local). Row 3 is one directory variable rather thanBLOOMERY_LEASE_LOCKandBLOOMERY_LEASE_HOLDS; row 4 is one lock, not a UUID-keyed one; row 5 acceptsa6000too. Row 1 names theenvironment file
$BLOOMERY_ENV; it isBLOOMERY_ENV_FILE. Their "Who" column still says maintainers, which answer10 changed.
docs/contrib/local-check.md:126, "Order and sizes", item 2: rows 1, 3 and 7 built, row 2 (the example environmentfile) not.
docs/contrib/dgx-spark.md:240, section 3.4: the first row names the modeBLOOMERY_BOX=localand theenvironment file
$BLOOMERY_ENV; they areBLOOMERY_BOX_LOCAL=1andBLOOMERY_ENV_FILE.:242, the card row,names
BLOOMERY_GATE_CARD=local; the selector isBLOOMERY_BOX_CARD=local, whichbox.shsets.docs/BUILD.md:5: the recipes' commands "do not run on your host as written"; withBLOOMERY_BOX_LOCAL=1they runon a Linux machine with a card, given the environment file and the inputs each gate reads.
CONTRIBUTING.md:37-38: thejust gate-*recipes reach the workstation throughtools/box.sh, "so they do not runon yours"; with
BLOOMERY_BOX_LOCAL=1they run on a contributor's Linux machine with a card.