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.

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.

5 participants