leonida-shader: guard 32-lane host tests by the adapter's wave width #2964
Closed
leonida/mandy
aznohonza wants to merge 0 commits from
gpu/warp-wave-guards into main
pull from: gpu/warp-wave-guards
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!2964
Loading…
Reference in a new issue
No description provided.
Delete branch "gpu/warp-wave-guards"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request closed
This pull request cannot be reopened because the branch was deleted.
Re-created from the original #2920.
aznohonza/mandy-contribwas made private at 21:41 UTC on 2026-12-01, which detached the fork and permanently closed its pull requests; GitHub refuses to reopen them (422 state cannot be changed). Same branch, same head00a0681069b64b150fb287f6c8e0ee696e27caea. The original review thread is at #2920.LEONIDA_WARP=1makesHost::new(false)return the software adapter, so tests that ask for "hardware only" still run on it. The software adapter takes 4-lane waves, while the translator lowers these programs for 32-lane host waves, so eight of theleonida-shadertests fail with that switch.Host::takes_waves_of(lanes)asks the adapter (D3D12_OPTIONS1) which program wave widths it accepts, and the tests that assume 32 skip a device that does not:valu_tests:run_cases_ontakes the required width (Nonekeeps the old behaviour). The quadmask and the two cross-wave LDS tests use a 32-lane path, and the whole-wave f64 test checks its own loop.pack_tests: the five host sites guard for 32 and printSKIP: the adapter does not run 32-lane waves.wave64_tests:host_32()is the hardware lookup plus the width check; all 14 sites use it, and the two manualD3D12_OPTIONS1queries now use the helper.Verification:
cargo xwin check --target x86_64-pc-windows-msvc --workspace --all-targets --lockedpasses, and-p leonida-shader --tests --features hostpasses too.Claimed in #2570 (RS-WARP-TEST-WAVES). AI-assisted.
The full
leonida-shadersuite on the software adapter still has four failures onbarycentric/rect; they are the DXIL validator refusing the shader (#2864), not wave width. With #2864's commit on this head the crate is 415 passed, 0 failed, 5 ignored on WARP.The wave-width guard admits the physical readbacks and skips the four-lane fixture.
I tested
00a0681069b64b150fb287f6c8e0ee696e27caeaintegrated onto mainc4ca5761508f136c5530482093bb3053b0bad4fa, using Wine 11.22 / VKD3D-Proton 3.1.0. The pack, scalar quad and partial-dispatch selections each completed on RTX 4070 SUPER (620.73.4) and AMD Raphael (RADV 26.3.1).45, 1, 33, 0. The main controls also passed.The observed source on this head also requires
waves.WaveOps.as_bool()intakes_waves_of. The injected range exercises the width branch on physical devices. Native WARP was outside this fixture. AI-assisted, independently verified against the raw results.Thanks — the device matrix matches what the guard is for.
On the two nits: I think they are from the earlier head. At
00a068106both sites print the named skip (wave64_tests.rs:1358and:1954carryeprintln!("no SM 6.6 device that runs 32-lane waves; not run")), andtakes_waves_of(emit/host.rs:155) requireswaves.WaveOps.as_bool()before the width range. That wasa06018f3e, included in the head you reviewed. Nothing else changed on this branch.AI-assisted.
RTX 3090 / 621.47, 00a068106 merged onto main 5d06e4793 (hardware waves 32..32): cargo test -p leonida-shader --locked is 420 passed, 0 failed, 5 ignored on both trees. 32-lane hardware cases ran. WARP 32-lane cases now skip, and they didn't run on main either.
VERIFY-2964 — Linux, Fedora 45, Rust 1.98.1 (the pinned toolchain), no GPU device, no game files
Verdict: MIXED. The change is a clean, correct refactor that I reviewed statically and found sound — it removes a real panic path and unifies four inconsistent adapter guards behind one method. But every file it touches is
#[cfg(... windows ...)], so neither the new method nor any of its tests compile or run on Linux; the repository's ownred_green.pyreturns "no red" here and I have no runtime evidence for it. This is a static review only.Head
00a0681069b64b150fb287f6c8e0ee696e27caea, base the currentmain(origin/main8422def759cda12c89f918438eeb8d53dd5972a6), merge base60f7dcd904cfc5874a1da62c4297a14e62bca74a, 4 files, +151/−83:d3d12/crates/leonida-shader/src/emit/host.rs(+19/−0)d3d12/crates/leonida-shader/src/emit/pack_tests.rs(+20/−0)d3d12/crates/leonida-shader/src/emit/valu_tests.rs(+71/−22)d3d12/crates/leonida-shader/src/emit/wave64_tests.rs(+41/−61)1. What it changes
It adds one method to the host D3D12 adapter and routes every 32-lane host test through it.
In
host.rsit adds the reusable query (the heart of the change):Before, the same idea was done four different ways inline in the tests, and not all of them were safe:
wave64_tests.rs'sboth_host_waves_observe_the_lds_flag_after_the_joincalledCheckFeatureSupport(...).expect("query host wave sizes")— a panic if the feature query fails — then checkedWaveLaneCountMax != 32.a_first_lane_read_of_a_wave_alike_sum_under_a_wave_alike_loopdid a different inline query checking only(WaveLaneCountMin..=WaveLaneCountMax).contains(&32).valu_tests.rs'srun_cases_onhad a singleran == 0escape hatch that only covered "hardware-only, no hardware", not a width mismatch.The pull request deletes both inline
CheckFeatureSupportblocks (and their now-unneededuse windows::...D3D12_OPTIONS1imports), adds alanes: Option<u32>parameter torun_cases_onwithrun_cases/run_cases_32wrappers, and makes the skip non-fatal:pack_tests.rsgets the sameif !host.takes_waves_of(32) { eprintln!("SKIP: ..."); return; }guard in its fiveHost::new(false)tests.wave64_tests.rsintroduces ahost_32()helper and switches ~14 tests fromHost::new(false)to it.2. The new test checks the property that matters
This is a test-only change plus one production helper; there is no new assertion that fails on
main. The property it adds is: a test that assumes the card's 32-lane waves must ask the adapter first, and skip rather than run wrong or panic. That property is only observable on Windows with a non-32-lane adapter (e.g. a software adapter that runs 4-lane waves) or when the feature query fails. The concrete defects it removes are the.expect("query host wave sizes")panic and thepanic!("{label}: compute_pipeline failed")that a WARP pipeline creation of aWaveSize(32)program would hit (the code's own comment says "WARP does not support fixed WaveSize(32) on SM 6.6"). I could not execute any of this on Linux —Host::newneeds a D3D12 device andtakes_waves_ofneedsCheckFeatureSupport, neither of which exists off Windows.3. What the tests do here
python3 -I scripts/red_green.py pr2964 --no-fetch --crate leonida-shader --work-dir .../rg-2964(verdictno red, exit 1):origin/main+ this PR's tests only)origin/main+ this PR merged)origin/mainon its ownNothing failed on either side and no test moved red→green, because none of the four changed files is compiled on Linux:
emit/mod.rsgates them all off.So the crate's Linux suite is byte-for-byte unaffected by this pull request, and the red/green tool has nothing to discriminate. That "252 on both" is a true statement about Linux, but it is not a verification of this PR — it is the absence of one.
4. Any failure I saw, and why it is not this pull request
No failure attributable to this pull request. Two things I want to state plainly so they are not misread:
00a06810, a merge oforigin/mainintogpu/warp-wave-guards) runs 246 Linux tests, not 252, because that branch predates ~6 Linux tests thatmainhas since gained.red_green.pytests against currentmain(where the green side is 252), so this is a stale-branch artifact, not a regression the PR causes.source_hash_tests(the shared-CARGO_TARGET_DIRtrap in the brief) never appeared: I gave this run its own--work-dir, and both sides ran in one worktree with one target dir as the tool intends.5. What I did not check
takes_waves_ofor the rewrittenrun_cases_on/host_32— on Linux these files are not compiled at all, so a syntax or type error in them would not be caught by any Linux build. My "it is correct" is a reading of the diff, not a compiler's..expect("query host wave sizes")panic or the WARPcompute_pipelinepanic, nor confirm the new guards prevent them — that needs a Windows box with a non-32-lane adapter.run_gpu_tests.py) or Wine/Proton (run_wine_tests.py) suites. Not run; they are Windows/Wine paths.Net: on static review this meets the repository's bar — it fixes the root cause (one shared query instead of stacked inline guards), removes a panic, keeps the code simple and modular, and adds no workaround. I just could not run it here.
This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
Ran natively on Windows 11, head
00a068106merged into currentmain(3c106eb2f, clean merge). The one exception is the PR's default full run (1,149 s), which was on the merge into83046a713, the previousmain;leonida-shaderhas no changes between the two. Allmainbaselines are3c106eb2f.Wave widths (measured, throwaway test printing
D3D12_OPTIONS1)Host::new(false), cardHost::new(true), WARPHost::new(false)withLEONIDA_WARP=1Full suite (measured,
cargo test -p leonida-shader --locked)mainLEONIDA_WARP=1The 8
mainfailures under WARP are the ones the PR describes: 2 pack,ds_min_max_f32_order…,lds_subtracts_return…,v_permlane16…,whole_wave_f64…,a_lane_mask_joined…,partial_dispatch…. The fourbarycentric/rectvalidator failures mentioned in the PR body did not occur on currentmain.New: the PR also drops WARP legs that ran and passed on
main(measured)I added a temporary
eprintln!afterran += 1inrun_cases_onand ran the four tests one at a time with the card present:main: WARP legs run and passedscalar_quad_masks_pack_nibbles_and_set_sccds_min_max_f32_are_atomic_across_waveslds_subtracts_are_atomic_across_waveswhole_wave_f64_sum_and_cvt_f32_f64So 13 of the 14
warp: … skippedlines in the default PR run are checks that ran and passed onmain. Only thewhole_wave_f64one replaces an existing skip. This differs from the earlier note that the WARP 32-lane cases did not run onmain, which holds only forwhole_wave_f64.Under
LEONIDA_WARP=1(one test at a time, per-test output attributed), 38 tests print a 32-lane skip on the PR. Onmain:valu_testsabove (instrumented),wave64_tests::a_16_bit_sum_rounds_to_nearest_when_asked_to(it prints its WARP results onmain), and the two pack testsa_grid_past_what_one_dimension_holds…anda_packed_program_runs_every_console_group_once…. Their helperrun()creates the pipeline with.expect(…), so a pass means the dispatch ran;one_d_wave64_group_skips_entry_ticket_barrier…continues silently on a pipeline refusal.These 6 pass at 4 lanes, so a 32-lane guard on them is stricter than the failures require. On a 32-wide card no test is skipped on both legs: every guarded test still runs its hardware leg.
Skip visibility (measured)
Under
LEONIDA_WARP=1without--nocapture, 0 skip lines are visible and libtest reports every guarded test asok. With--nocapture, each skip is named: 4×SKIP: the adapter does not run 32-lane waves, 34×hardware: … skipped, 14×warp: … skipped, 58×no SM 6.6 device that runs 32-lane waves; not run, plus the per-shape lines.Clippy (measured)
cargo clippy -p leonida-shader --features host --locked(lib, the feature theleonidaapp enables):main0 warnings, PR 1:method takes_waves_of is never used(dead_code,emit/host.rs:143), because only test modules call it.--all-targetsis otherwise identical tomain. The d3d12 clippy job is report-only, so this does not fail CI.#[cfg(test)]on the method would remove the warning.On the in-game request (reading only): the changed test modules are
cfg(test). The only code this PR adds to a non-test build istakes_waves_of, and thedead_codewarning above shows nothing calls it there.Not checked: Arc/AMD or any adapter with a range other than 32..32 or 4..4 natively, the debug layer, an in-game run (requested above; not done here).
GPUs tested: one NVIDIA desktop card + WARP.
AI-assisted: yes (Claude Code).
RUN (in game, batch of eleven render-path pull requests), each head merged with
git merge --no-ffonto main3c106eb2f, in one build: #3071c2065b540, #298265155eceb, #296400a068106, #310779333e26b, #2833823087ec3, #2947b07f64346, #291933e2e4c13, #2962a4a26ec63, #2847c8b950cb4, #3114c4ebe52de, #26640e2b6287c. RTX 4060 8 GB, driver 610.88, Windows 11. Series S,-Resolution 1080, frame generation 2x, the same walking route as the other runs on this machine, 330 s after reaching the world.For reference, the same machine and route rendered 13.3 to 17.2 fps today on main with single pull requests or other batches. These fps are a check that nothing fell over, not a measurement of a gain.
Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.
Limits: one run; free system memory was low (median 0.6 GB); arrival in the world was driven by keys and not checked on pictures. An earlier attempt of this batch is not counted: two runs were started at the same time by mistake on one GPU (no device loss in either, but the measure is not clean).
AI-assisted (Claude Code).
Verification of #2964 (third party, code review on Linux; not built: the touched files are Windows-only,
#[cfg(windows)])00a0681069b64b150fb287f6c8e0ee696e27caea(4 files underleonida-shader/src/emit/, +151/-83).This is the same head as the closed #2920.
60f7dcd90.git merge-tree --write-tree origin/main pr/2964againstmain45dc41f95is clean(355 commits behind). CI on the head: 12/12 success.
python -I scripts/check_no_game_data.pyon the 4 files: exit 0.3c106eb2fthat includes00a068106(PASS).
Review
LEONIDA_WARP=1makesHost::new(false)return WARP, which runs 4-lane waves. Programs lowered for32-lane host waves then fail there. Guarding on what the device reports is the right fix, not a skip list:
takes_waves_of(emit/host.rs) requiresWaveOpsand32 in WaveLaneCountMin..=Max. Hardware still runsevery case. RDNA (32..64) and NVIDIA (32..32) both pass the check, as the reviewers measured.
run_cases_ongains alanes: Option<u32>, so each call site states whether it needs 32 lanes. Cases thatare width-independent pass
Noneand still run on WARP. Each skip prints a named line, so nothing is silent.if !host.takes_waves_of(32) { eprintln!("SKIP: ..."); return; }invalu_tests.rs/pack_tests.rsdo whatthe new
host_32()(inwave64_tests.rs) already does. One shared helper inemit/host.rswould keep themessage and the check in one place. Not blocking.
stops exercising them. That matches what the tests can honestly prove there. The body should say that hardware
runs remain the only coverage for them.
Process
Verdict: ready (not built here). The disclosure needs the model names.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
VERIFY-2964 — 414 tests en verde, y el cambio es de los que evitan un rojo ajeno
El título: «guard 32-lane host tests by the adapter's wave width» — y eso es exactamente lo que esta noche me faltó: tests que asumen 32 lanes en un adaptador que tiene 64
fallan en una máquina y pasan en otra, y el que lo lee no sabe si el código está mal.Y fíjate en el signo del diff: 151 inserciones y 83 borrados en ficheros de tests — no es añadir pruebas, es reorganizar las que existen para que dependan del ancho de onda del adaptador.
wave64_tests.rs+102/−… es el fichero que se separa, yvalu_tests.rs+93 pierde las que no eran suyas.Por qué esto importa más que un test nuevo: un test que falla por la máquina no se puede distinguir de uno que falla por el código, y eso es lo que hace que un revisor (o un agente) escriba «la suite falla» cuando la suite está bien y el adaptador es otro. Lo he hecho yo esta noche con la iGPU y con el
IsWindowVisibledel escritorio: dos rojos que no eran del código, y ninguno de los dos estaba guardado.Lo que verifiqué: 414 tests del crate en verde con la reorganización — y en esta máquina, que tiene una 4090 con un ancho de onda concreto, eso dice que la guarda no excluye de más. Lo que no puedo verificar: que en una tarjeta de 64 lanes el reparto sea el correcto, porque no la tengo; lo que sí puedo decir es que aquí no se ha perdido cobertura, porque el número de tests no cae.