v0.0.4: reference-locality bucketing (runtime autotune), sparse chunk walk, foundations - #5
Open
alejandrogzi wants to merge 3 commits into
Open
v0.0.4: reference-locality bucketing (runtime autotune), sparse chunk walk, foundations#5alejandrogzi wants to merge 3 commits into
alejandrogzi wants to merge 3 commits into
Conversation
… sparse chunk walk, foundations Sync of the tested experimental tree (alejandrogzi/hspZ experimental @ ce1de86) into production: - ref-loc-buckets (default feature): stable in-chunk reference-window bucketing before the score gate; survivors restored to original order, output byte-identical. L4 whole-genome wall -6.5% (disjoint reversed pairs). HSPZ_REF_BUCKETS unset = auto: per engine, alternate the production path in >=3 s blocks, discard each block's first second, keep the faster settled path (L4 -> on, RTX 4090 -> off, measured); 1/0 force; HSPZ_REF_BUCKET_SHIFT pins the window; T4-class L2 off. - sparse chunk walk (default): the per-batch ~6.8 MB pageable copy of the cumulative hit array is replaced by a two-level search plus <=1 KB fetch per boundary; same chunks. 2x RTX 4090 whole genome W=2: 1,634 -> 1,480 s (-9.6%). HSPZ_CHUNK_WALK=full is the rollback. - foundations: semantic --max-hits target vs physical hit capacity (the over-cap tail no longer aborts and never changes a chunk), --dump-plan / --dump-manifest / --from-manifest, ledger timers for query pack / swaps / per-worker gaps, host-memory budget line; multi-GPU output equals one-GPU output at the same plan and cap. - packaging: version 0.0.4; changelog; docs (runtime knobs, regenerated CLI reference); assets/tests/multiplicity_gate.sh synced. Verified here: cargo oxide build --release (--locked ok), 116 tests, chr20 fixture digest 70152625c1a75cb3 identical to the experimental binary at --max-hits 16711680 and 2000000 and with HSPZ_REF_BUCKETS=1/0; docs validate + build. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…window) Two whole-genome work units on an NVIDIA L4, forced ref-loc-buckets, reversed pairs: the 32 MiB window (13 buckets) uses 2.8% and 3.0% less GPU time than 16 MiB (26 buckets), byte-identical output. The 2/3 budget rejected 32 MiB on a 48 MiB L2 by the flag/stream allowance; 3/4 admits it. RTX 4090 (72 MiB) still picks 32 MiB, T4-class L2 still forces off, a 40 MiB L2 keeps 16 MiB. Unit test updated; changelog line added. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… identical output)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sync of the tested experimental tree (
alejandrogzi/hspZexperimental@ce1de86) into production, as v0.0.4. Two exact speed-ups plus the foundation repairs behind them; every arm reproduced the frozen digests on NVIDIA L4, RTX 4090 and AMD (ZLUDA).ref-loc-buckets(default feature) — stable in-chunk reference-window bucketing before the score gate, survivors restored to original order, output byte-identical. L4 whole-genome wall −6.5% (11,029 / 10,901 → 10,274 / 10,224 s, disjoint reversed pairs). On an RTX 4090 the pass costs +3.7%, soHSPZ_REF_BUCKETSunset =auto: each engine alternates both paths in ≥3 s blocks, discards each block's first second and keeps the faster settled path (measured: L4 → on at 0.941/0.935, 4090 → off at 1.069/1.063).1/0force,HSPZ_REF_BUCKET_SHIFTpins the window, T4-class L2 forces off.HSPZ_CHUNK_WALK=fullis the rollback.--max-hitstarget vs physical hit capacity (the historical over-cap tail no longer aborts and never changes a chunk);--dump-plan/--dump-manifest/--from-manifest; ledger timers for query pack / swaps / per-worker stage gaps; host-memory budget line. Multi-GPU output is byte-identical to one-GPU output at the same plan and cap.assets/tests/multiplicity_gate.shsynced.Verification (local, ZLUDA)
cargo oxide build -- --releaseclean;--lockedconsistent after the one-line lock bump.cargo oxide test -- --release: 116 passed.70152625c1a75cb3/ 3,638 HSPs identical to the experimental binary at--max-hits 16711680and2000000, and withHSPZ_REF_BUCKETS=1and=0.pnpm docs:validate -- --sourcesandpnpm buildpass.Evidence and reviews live in the experimental repo (
results/round85-chunkwalk/,results/round86-autotune/,results/round87-autotune-blocks/,benchmarks/baseline.mdround-85 section).🤖 Generated with Claude Code