Repository navigation
gpu-gates: reject incomplete references after worker panics - #364
Conversation
Return GateError from every 32-value reference aggregation instead of fabricating numeric counters; propagate it through dense, routed, IQ4_NL, remap and packed-Q5_0 consumers. Keep check_ref's existing hard error and cover it alongside the slot reducers. Add real host-reference regressions for completed work followed by panic, all-work and initializer panics, unchanged band/bits/host-slot controls, and the final failing ExitCode. Run these from gate-gpu-gemm before the device gate. Verification intentionally unrun in this worker: parent owns static, host-reference, NVIDIA and panic-mutant evidence. No numeric bands or kernels changed.
There was a problem hiding this comment.
Verdict: CLEAN: Worker panics now propagate through every affected consumer to the gate's failing exit.
Non-blocking
⚠ FAIL-first evidence: justfile:1234. The PR reports an extracted host executable, but no FAIL-first output from the actual regression target. Run the filtered tests with Err(_) => panicked = false, then restore the code and attach both outputs. This establishes that the committed tests catch discarded worker failures.
⚠ Failure context: crates/gpu-gates/src/bin/gate_gemm.rs:2987. Every worker panic caught here returns reference thread panicked. The callers propagate it before printing the current case, layout or shape. Retain those inputs through the existing diagnostic path, or identify a retained probe that reports them. Adding that context while these callers change makes later failures easier to reproduce.
Checked
Duplicates: 4 new functions checked against existing reference and failure helpers; no duplicate owner found. No dryer pairs were supplied.
Complexity: remap_case 76→77, dense_case 45→46, iq4nl_case 40→41, q5_0p_case 40→41, routed_case 24→25. Each increase is error propagation with ?.
Silent failure: 3 worker-result sites followed; both fabricated-result fallbacks are removed, and all 5 consumers propagate the error to exit_with.
Tests: static mutation check only. Ignoring the panic at line 2983 would fail both new 32-value tests' error assertions. Returning an empty success at line 714 would fail the K-quant test's error assertions. Making exit_with return success on errors would fail the shared assertion. Tests were not executed during this review.
Adversarial checks: partial work, all-work and initializer panics return errors; successful joins cannot mask a later panic. Zero slots retain the explicit empty-result contract. The recipe filter matches all 3 tests and preserves failure status.
Gates: no bands, thresholds, count pins or existing cases changed. Hot path: none; the changes affect gate reference work.
Escape catalog: C1–C4 do not match the added command or documentation.
Notes
Dryer did not run; diagnostics incorrectly reports no changed Rust file under crates/.
NVIDIA acceptance and device-consumer panic mutants remain unrun, as the PR states. No qualifying GPU evidence was supplied.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_gemm.rs and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
|
Immutable evidence and applicable panic mutants are now published: Additional executed host boundary: the actual #344 generic For real device-consumer mutant verification:
Normal owner gate remains |
|
@Burntgogi Thanks for the contribution. The review is done, so I'm merging this. |
|
Source Host execution over the actual reference owners still distinguishes clean/partial/all-worker paths with exits 0/1/1. The #344 generic/NVFP4 host boundary independently gives 0/1/1. These are host error-propagation proofs, not CUDA arithmetic or native gate execution. Additional requested actual-test negative control is retained at: The retained consumer handoff pins source head, the explicit Full immutable evidence, including both host probes and the four consumer patches: Exact registered test command for that fail-first/restored run: |
Problem
Fixes #346. A reference worker panic was converted into a fabricated
Checkedwith zero checked/band/bits counts andhost_bad=1. Several consumers ignored host_bad and could report PASS; checking onlychecked>0would still miss partial-reference failure.Change
par_slotsjoins every worker and returns aGateErroron any panic, including initializer failure; no intermediate result buffer is added.checkandgemv_cmppropagate that error instead of inventing a partial success record. All dense/routed/IQ4_NL/remap/packed-Q5_0 consumers use?.check_refalready propagated panics and stays unchanged.gate-gpu-gemmbefore the device gate. They exercise real reference functions, partial/all/initializer panic and the actualexit_withfailure result, plus numeric/untouched controls.Exercised verification
cargo check --target x86_64-unknown-linux-gnu ... --features gpu --bin gate_gemm --testspasses. This is NOT PTX/device execution.par_slots,check,row_dotandrow_checked, and the actual host quantizer/dot library andexit_with: clean reference checks 6 outputs and exits 0; panic after partial work exits 1; all-work panic exits 1, both with the named reference error. No substitute reference implementation or GPU output is used.In-flight #344 compatibility
Prepared
Burntgogi/bloomery:support/gemm346-on344at7eaf697, based on exact #344 head0097d4977138f1797dda20727e806a088ef1ab39. It preserves the generic dot closure and NVFP4 arithmetic, propagates errors at both additional NVFP4 consumers, and adapts the regression call. That combined source and its tests pass metadata-only checking too. This PR itself does not bundle #344's kernels.NVIDIA acceptance still required
This workstation has RX7900GRE only and no configured GPU SSH hosts. The actual default destination in
tools/box.shisws; a BatchMode SSH probe failed with hostname resolution error (exit 255). The actual NVIDIA gate and device-consumer panic mutants were not run. Maintainer lane:just gate-gpu-gemmthrough the configured box, orBLOOMERY_BOX_LOCAL=1 just gate-gpu-gemmon a correctly configured NVIDIA contributor host, then all-/partial-reference panic mutants against the individual dense, routed, IQ4_NL, remap and packed-Q5_0 cases. I am requesting that lane rather than equating host/static checks with CUDA acceptance.