test: skip hardware adapters that cannot run a wave64 fixture #260
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/260"
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?
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by Pr-Leonida on 2026-11-26T14:08:05Z.
What
The all-adapters-walking GPU-exec tests (
split_tests,lane_read_loop_tests, andeach_adapter_gets_what_it_runs) iterate over every hardware adapter and hard-failed (panic!) on the first one that refused the fixture. On a hybrid laptop the second GPU is a 16-lane Intel iGPU that refuses the console wave64 fixtures at translation (and pipeline creation) before any GPU work, so those tests panicked on the iGPU before the capable GPU was ever exercised.This change reports the refusal and skips that host, and adds a vacuous-pass guard: the test now fails if no adapter ran the fixture. A capable GPU still has to pass.
Why it's safe
assert_eq!(out, want)paths are untouched.ran > 0) means a machine with no capable GPU fails loudly instead of passing on an empty loop.Verified
On an RTX 5070 Laptop (32-lane) + Intel UHD (16-lane) box, at the current
maintip:victory-shaderemit failures.Intel(R) UHD Graphics: waves 16-16 … console wave64 lanes on a host without 64-lane waves is not supported; skipped) and the RTX runs every fixtureexact (split true).Out of scope (intentionally untouched)
valu_teststhat fail at compute-PSO creation withE_INVALIDARGeven on a pure-NVIDIA run are a separate, genuine driver/translator issue — reported in #259. This change does not touch them; they still fail, as they should.memory_tests+ 1image_teststhat use the default adapter (Host::new) still select the iGPU on this box and so still fail. That is a default-adapter-selection question, not an all-adapters-walk one;VICTORY_ADAPTER=nvidiamakes them pass. Left for a separate change.Files:
crates/victory-shader/src/emit/{split_tests.rs, lane_read_loop_tests.rs, mod.rs}.Imported from Belobug/VIctory-Belobug-AMD. Originally posted by gut0to on 2026-11-26T15:32:15Z.
Review: COMMENTED
AI-assisted static review; I inspected the changed adapter loop and its stated capability rationale, but did not run the GPU tests.
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by gut0to on 2026-11-26T15:32:15Z.
Code review location:
crates/victory-shader/src/emit/lane_read_loop_tests.rs; line 145This treats every translation failure as an unsupported host.
emitcan also fail because of a lowering/compiler regression on a host whose reported wave range supports this fixture; since the guard only requires one adapter to pass, that failure would become a skip when another adapter succeeds. Could the skip be limited to an explicit wave-capability mismatch and let other translation errors fail?Imported from Belobug/VIctory-Belobug-AMD. Originally posted by WellyngtonSantos on 2026-11-27T13:08:12Z.
A heads-up from trying this on the current default branch: it targets
main, which is still at4f62c2a. Recent merges, #290 included, go toa-publier, and the two branches don't share history, sogit mergerefuses (refusing to merge unrelated histories). Cherry-picking170e2b1ontoa-publier4eb6cfdconflicts, becauselane_read_loop_tests.rsandsplit_tests.rsno longer exist there, andemit/mod.rsconflicts as well.So this would need redoing against
a-publierto land. For the other side of the same problem, hosts with 64-lane waves only: #290 (merged) skips theWaveSize(32)pipelines on such a device, and on an RX 580a-publierrunsvictory-shaderat 303/0. I can run a rebased version on that card if useful.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.