Skip to content

Tests: report disabled async compute PSO as skipped - #645

Open
juliptree wants to merge 1 commit into
xcl-dev:mainfrom
juliptree:codex/async-pso-skip
Open

juliptree wants to merge 1 commit into
xcl-dev:mainfrom
juliptree:codex/async-pso-skip

Conversation

@juliptree

Copy link
Copy Markdown

With XCL_ASYNC_PSO=0, the async compute PSO test returned before exercising the pipeline. Its message bypassed the shared skip helper, so XCL_REQUIRE_GPU=wave64 still reported a pass.

What is in it

  • Call runner::skip_test before returning when async PSOs are disabled.

Tested

  • Windows 11 build 26200, Ryzen 7 7800X3D, RTX 5060 Ti, NVIDIA driver 616.92, Rust 1.100.0 MSVC debug, DXC 1.8.2502.11.
  • With async PSOs disabled and strict Wave64 mode enabled, stock cb868b20 exited 0. Patched aee6962 failed as expected with exit 101. With strict mode cleared, the patched test logged SKIPPED and exited 0.
  • With both overrides cleared, gpu_compute_e2e passed both tests on the RTX 5060 Ti with no skips.
  • cargo build --workspace --locked passed.
  • cargo test --workspace --locked -- --test-threads=4 reported 685 passed, 0 failed, 41 ignored. Two tests in the pass count explicitly skipped for lack of native Wave64: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware.

Regression run

  • Test-only change. No retail title smoke run.

Not tested

  • AMD hardware and retail titles.

AI use

  • Codex with GPT-6 prepared the patch, rebased it, ran validation, and drafted this description.

Use the shared GPU skip helper when XCL_ASYNC_PSO=0 so strict wave64 coverage detects the missed async PSO test.

Assisted-by: Codex (GPT-6)
@MesshM

MesshM commented Nov 24, 2026

Copy link
Copy Markdown

Test run of aee6962bc639674aec04e9b8855a47e100f36939 on AMD RDNA4. I merged it onto current main 91f9a5e locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 692 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 652 passed, 0 failed, 21 ignored
  • 0 SKIPPED; all tests pass with the default settings (async PSOs on, so the changed path did not run).

Review: skip_test is the shared helper, so XCL_REQUIRE_GPU now sees the skip; the change is the one line it needs. I found nothing to change.

Not tested: no retail title or regression run (I have no unpacked game), no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

@thaqiart139-alt

Copy link
Copy Markdown

Test report for this PR's head aee6962, merged into main 689f2db (no conflicts), on AMD RDNA2 with native 64-lane waves and on a 32-lane NVIDIA card.

Tested

  • GPUs: AMD Radeon(TM) Graphics, the RDNA2 iGPU of a Ryzen 7 7800X3D (native wave64, driver 32.0.21045.29003), and NVIDIA GeForce RTX 5070 (driver 32.0.16.2101), chosen with XCL_ADAPTER.
  • System: 32 GB, Windows 11 Home build 26300, Rust 1.100.0, debug, DXC 1.9.2602.17.
  • cargo test --workspace --no-fail-fast -- --test-threads=4:
main 689f2db with this PR
RTX 5070 971 passed, 4 failed, 45 ignored 971 passed, 4 failed, 45 ignored
Radeon iGPU 974 passed, 1 failed, 45 ignored 974 passed, 1 failed, 45 ignored
  • This PR adds no failure. The failures are the same on main, from Direct DXIL: geometry mode, MSAA loads and directed f32 rounding #1679's new fuzz tests, and both are already reported on Direct DXIL: geometry mode, MSAA loads and directed f32 rounding #1679:
    • RTX 5070: fuzz_validate_and_gpu_0 to _3 (CreateComputePipelineState: 0x8007000E)
    • iGPU: fuzz_validate_and_gpu_1 (seed 540: res[833] = 0x7, CPU 0x6)
  • The change only shows with XCL_ASYNC_PSO=0, so I also ran cargo test -p xcl --test gpu_compute_e2e -- --test-threads=1 with it set, on both GPUs. On main, async_compute_pso_registers_real_pso_and_not_standin returns with no SKIPPED line. With this PR it prints SKIPPED async_compute_pso_registers_real_pso_and_not_standin: async PSO disabled by XCL_ASYNC_PSO=0. 4 passed, 0 failed on both GPUs, with and without the PR.
  • Without XCL_ASYNC_PSO, the counts are the same as on main.
SKIPPED tests (the same on main and with this PR)
  • RTX 5070:
    • no wave64:
      • gpu::recomp::lower::tests: a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu
      • gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu, and the wave64 cases of its f16 / f32 / f64 / integer_programs_on_the_gpu
      • gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware
    • the wave32 per-lane cases of lower_dxil's f16 arithmetic, f16 packed and f32 conversions: refused ("its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's")
    • heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)
    • pso_measurement_compiles_an_exact_synthetic_record (Windows Developer Mode is off)
  • Radeon iGPU:
    • no mesh shaders: gpu::dxil::geometry_tests::gpu_geometry_direct_records, emitted_ms_primitive_attribute_reaches_the_pixel_shader, emitted_ms_ps_draw_a_triangle, gpu_geometry_mode_es_gs_strip, gpu_geometry_mode_es_gs_strip_with_branches, gpu_mesh_mode_two_passes
    • the wave32 and wave64 per-lane cases of lower_dxil's f16 arithmetic, f16 packed and f32 conversions: refused, as above
    • heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)
    • pso_measurement_compiles_an_exact_synthetic_record (Developer Mode is off)

Not tested

  • a title run; other GPUs; Linux / Wine.

AI use

  • Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report.

@Alpha325

Copy link
Copy Markdown

I tested the exact PR head aee6962bc639674aec04e9b8855a47e100f36939 and its parent 18c105af86929d6ae26c44096c85b66f1644e743 on Windows 11 Home 26200.9974, Ryzen 5 7600X3D, and Radeon RX 9060 XT 16 GB (driver 32.0.32029.2010). Debug build with Rust 1.100.0 x86_64-pc-windows-msvc and DXC 1.9.2602.17 from Windows SDK 10.0.26100.0.

Command

cargo test --offline --locked -j 4 -p xcl --test gpu_compute_e2e -- --test-threads=1

I set XCL_ADAPTER="Radeon RX 9060 XT" and left XCL_SAMPLE_* unset. Each row was run separately on both commits. “Default” means XCL_ASYNC_PSO was unset.

Async PSOs XCL_REQUIRE_GPU Parent PR
0 Unset Exit 0, 2 passed, no skip marker Exit 0, 2 counted as passed, 1 explicit skip
0 wave64 Exit 0, 2 passed, no skip marker Exit 101, 1 passed, 1 failed
Default Unset Exit 0, 2 passed, 0 skips Exit 0, 2 passed, 0 skips
Default wave64 Exit 0, 2 passed, 0 skips Exit 0, 2 passed, 0 skips

With async PSOs disabled and strict mode unset, the PR emitted SKIPPED async_compute_pso_registers_real_pso_and_not_standin: async PSO disabled by XCL_ASYNC_PSO=0 without --nocapture. Libtest still counts that early return as a pass, so the skip marker is what distinguishes it in the output.

With strict mode set to wave64, the same test failed with async PSO disabled by XCL_ASYNC_PSO=0, but XCL_REQUIRE_GPU=wave64. The Wave64 dispatch and readback test still passed. With async PSOs enabled, the logs confirmed the real Radeon backend and background compute PSO creation, and both tests passed.

Scope — Synthetic compute shaders only. This was a focused integration run.

AI use — OpenAI Codex (GPT-6) ran the comparison, checked the logs, and drafted this report.

@JJAutoCompare

Copy link
Copy Markdown

Empirical test report (aee6962)

Hardware / environment

  • Commit aee6962bc639674aec04e9b8855a47e100f36939 in a clean, detached worktree.
  • Windows 11 Enterprise Evaluation, build 10.0.26200, on an AMD Ryzen 7 3800X. D3D12 selected Intel Arc A770 Graphics, driver 32.0.101.9175.
  • Rust 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc), unoptimized test profile. DXC and DXIL 1.9.2609.5.

Commands and results

  • cargo test --workspace --no-run ran outside the Arc lock and exited 0. This compiled the workspace test binaries.
  • powershell -ExecutionPolicy Bypass -File $harness -Binary $binary exited 0. The harness ran Invoke-ArcTest.ps1 with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1. Under the lock it ran the same command in two fresh processes. $binary denotes the Cargo-built gpu_compute_e2e executable.
& $binary --exact async_compute_pso_registers_real_pso_and_not_standin --format terse
  • XCL_ASYNC_PSO unset (default), exit 0. 1 passed / 0 failed / 0 ignored / 0 skipped.
  • XCL_ASYNC_PSO=0, exit 0. 1 passed / 0 failed / 0 ignored / 1 skipped.

Observed behavior

The default run built a translated compute pipeline in the background and passed the assertions for registration of the real PSO, exclusion of the stand-in, and cleanup. The disabled run reached the explicit skip after initializing the real D3D12 backend. Libtest counted the early return as a pass. It contributed no async PSO coverage. The log recorded the following skip line.

SKIPPED async_compute_pso_registers_real_pso_and_not_standin: async PSO disabled by XCL_ASYNC_PSO=0

Not tested

The full GPU workspace suite and game smoke runs were omitted.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr645-focused.log and published.

@throny throny added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 25, 2026
@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

@Prime1997 Prime1997 mentioned this pull request Nov 26, 2026
@github-actions

Copy link
Copy Markdown

Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

@github-actions github-actions Bot added the stale No activity for 3 days; closed 4 days later unless something happens label Nov 29, 2026
@BBareth

BBareth commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

merge-check claim
head: aee6962

@github-actions github-actions Bot added area:tests Unit, integration, e2e tests, or testtitle needs-1st-check Passes gates; needs first independent merge-check (#3041) labels Nov 30, 2026
@BBareth

BBareth commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

merge-check
base: 9dfbe3e
head: aee6962
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2885 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines). 28 SKIPPED lines, as on the base. The touched test async_compute_pso_registers_real_pso_and_not_standin passed (async PSOs are on here, so the changed branch was not taken).
review: no blocking finding; one line in one test file. With XCL_ASYNC_PSO=0 the test returned after a plain println!; it now calls runner::skip_test, so the run prints a SKIPPED line like every other GPU test that does not run, as AGENTS.md asks. Not tested by me: the suite with XCL_ASYNC_PSO=0.
performance: none.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.

@github-actions github-actions Bot added needs-2nd-check Has 1 safe merge-check; needs second independent check (#3041) and removed needs-1st-check Passes gates; needs first independent merge-check (#3041) labels Nov 30, 2026
@tiagonleal

tiagonleal commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

merge-check
base: 9dfbe3e
head: aee6962
merge: clean, alone and together with #657 (8213152, which touches another file, gpu/recomp/tests.rs): both heads merged onto the base in one tree (c4c23abe) without conflicts
build: cargo build --workspace -> ok on the combined tree
tests: cargo test --workspace --no-fail-fast -j 8 -- --test-threads=4 on the combined tree of this head and #657's head on the base (one suite run for the two test-only PRs, not one per PR) -> 2886 passed, 1 failed, 51 ignored; SKIPPED: 24 lines, the same lines as on the base; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails the same way on the base alone (2885 passed, 1 failed, 51 ignored; #3513 fixes it). Async PSOs are on by default, so the changed branch is not taken in that run and the count stays at 24. The condition, run here with cargo test -p xcl --test gpu_compute_e2e: with XCL_ASYNC_PSO=0 the head prints SKIPPED async_compute_pso_registers_real_pso_and_not_standin: async PSO disabled by XCL_ASYNC_PSO=0, where the base line prints only "XCL_ASYNC_PSO=0 - skipping" and no SKIPPED line, so a full suite under that variable would show one more SKIPPED line (25 here). With XCL_ASYNC_PSO=0 XCL_REQUIRE_GPU=wave64, the head fails that test (runner.rs:662) and the base line lets it pass; the same with XCL_REQUIRE_GPU=mesh. In those runs heap_window_out_of_memory_falls_back_to_the_switch_form also fails under the strict setting on both sides, since heap windows are opt-in here; that is not this PR.
review: one line read (tests/gpu_compute_e2e.rs:621 in the merged tree). It replaces a println! with runner::skip_test, which writes the SKIPPED <test>: <reason> line to stderr and panics when XCL_REQUIRE_GPU asks for the missing feature (runner.rs:651-664). The reason string is neither "no mesh shaders" nor "no wave64", so under either strict mode it fails, which is what the PR describes. A skipped test is still counted as passed by cargo test (it returns after the SKIPPED line, like every other skip_test user); with this PR that pass at least comes with the SKIPPED line, so nothing is counted as run without a marker that it did not run.
performance: no smoke run: the PR changes only a test file, and nothing in the emulator binary.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB (617.42, wave32), Ryzen 7 9800X3D, 32 GB, Windows 11 26300, rustc 1.100.0 / Claude Code (Claude Opus 5.5 ran the build, suite and tests, reviewed the diff against the merged source and wrote this)

  • Tiago

@github-actions github-actions Bot added ready-to-merge Has 2 independent safe merge-checks on current head (#3041) and removed needs-2nd-check Has 1 safe merge-check; needs second independent check (#3041) labels Nov 30, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Triage (#1607) – head aee6962

No open or merged PR makes this change. Main still prints XCL_ASYNC_PSO=0 – skipping without calling runner::skip_test in async_compute_pso_registers_real_pso_and_not_standin.
Note: skip_test panics under XCL_REQUIRE_GPU=wave64 for any reason except "no mesh shaders". So with both XCL_REQUIRE_GPU=wave64 and XCL_ASYNC_PSO=0 set, this test now fails where it used to pass silently. That is probably what a required-GPU run should do, but it is a change in behaviour.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tests Unit, integration, e2e tests, or testtitle off-goal Does not bear on the current goal (world loading); waits until it is reached ready-to-merge Has 2 independent safe merge-checks on current head (#3041) stale No activity for 3 days; closed 4 days later unless something happens

Projects

None yet

Development

Successfully merging this pull request may close these issues.