Skip to content

Tests: skip wave64 GPU tests without an SM 6.6 adapter - #2

Closed
Auroraooy wants to merge 1 commit into
alfycs:feat/wave64-compute-emulationfrom
Auroraooy:fix/wave64-sm65-skip
Closed

Auroraooy wants to merge 1 commit into
alfycs:feat/wave64-compute-emulationfrom
Auroraooy:fix/wave64-sm65-skip

Conversation

@Auroraooy

Copy link
Copy Markdown

While validating PR Marvisak#189 on an RTX 2080 Ti (Turing, SM 6.5) on Windows 10 build 19045, cargo test -p victory-shader --locked -- wave64 --test-threads=1 produced 18 passed; 19 failed. Every failure was the same panic at wave64_tests.rs:1133:

expected at least one SM 6.6 adapter

Host::all_adapters() silently drops adapters that fail check_sm66(), and WARP is excluded by the same check, so with_hosts() receives an empty list. The shader logic never ran.

This patch:

  • logs every rejected adapter (GetDesc1 failure, software adapter, D3D12CreateDevice failure, SM check failure, WARP failure, factory failure);
  • changes the empty-host assertion into SKIPPED <test>: no SM 6.6 adapter;
  • passes the test name into with_hosts() from both call sites.

On machines with an SM 6.6 adapter the test path is unchanged.

Validated with cargo check -p victory-shader --tests --locked using Rust 1.98.1 and CARGO_BUILD_JOBS=18: finished in 6.49 s. git diff --check is clean. No game data was used.

AI use: AI-assisted (WorkBuddy) for drafting the patch and this description; the compile result is from a real local run.

Log every rejected adapter and WARP in Host::all_adapters(), and print SKIPPED <test>: no SM 6.6 adapter instead of panicking on an empty host list. This makes Turing/SM 6.5 machines diagnosable instead of producing identical failures.
@Auroraooy

Copy link
Copy Markdown
Author

Update after applying the diagnostic patch (#2): reran one representative GPU test on the same RTX 2080 Ti machine with 18 build threads.

Command:

cargo test -p victory-shader --locked -- emit::wave64_tests::gpu::gpu_64_threads_mbcnt_ballot_and_high_ff1 --test-threads=18 --nocapture

Result: 1 passed; 0 failed with the new diagnostics instead of the previous panic:

[wave64_tests] adapter "Intel(R) Graphics" skipped: the device supports SM 0x65 only
[wave64_tests] adapter "NVIDIA GeForce RTX 2080 Ti" skipped: the device supports SM 0x65 only
[wave64_tests] adapter "Microsoft Basic Render Driver" skipped: software adapter
[wave64_tests] WARP skipped: the device supports SM 0x62 only
SKIPPED mbcnt_ballot_ff1: no SM 6.6 adapter

This confirms the failures were an SM 6.6 test-harness gate, not wave64 shader logic. No game data was used.

@alfycs

alfycs commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Cherry-picked into eat/wave64-compute-emulation as 9db4e94 and verified locally (37 passed; 0 failed). Thank you!

alfycs pushed a commit that referenced this pull request Nov 25, 2026
)

RDNA2 flushes denormal operands of the legacy multiplies to zero, so
0 x anything = 0 also holds for them. The lowering only tested for an exact
float zero, whose result also depends on the host's denormal mode. Test the
exponent bits instead. Follow-up to #2.
@Auroraooy
Auroraooy deleted the fix/wave64-sm65-skip branch November 26, 2026 06:03
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants