test: skip hardware adapters that cannot run a wave64 fixture #260
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!260
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Pr-Leonida on GitHub · 2026-11-26 14:08 UTC · original
Pr-Leonida:test-skip-incapable-adapters→main· +78 −19 · 3 files · 1 commits · openWhat
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}.@gut0to on GitHub · 2026-11-26 15:32 UTC · original · reviewed
AI-assisted static review; I inspected the changed adapter loop and its stated capability rationale, but did not run the GPU tests.
@ -144,0 +142,4 @@let cs = match emit(&program(wave, lane), host.target()) {Ok(cs) => cs,Err(e) => {eprintln!("{name}: wave{wave}: translation refused: {e}");@gut0to on GitHub · 2026-11-26 15:32 UTC · original
This 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?@WellyngtonSantos on GitHub · 2026-11-27 13:08 UTC · original
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.