Tests: offline compute pipeline test finds the driver blob with XCL_D… #1674

Open
github-bot wants to merge 1 commit from github-bot/gh-1674 into main AGit
Owner

@⁠IgorAntunes66 on GitHub · 2026-11-24 19:10 UTC · original
IgorAntunes66:lab/test-offline-pso-direct-dxil → main · +12 −5 · 1 files · 1 commits · open

offline_compute_pipeline_is_reused_by_a_second_process fails whenever XCL_DIRECT_DXIL is set (=1 or =all): it takes the driver blob's name from a *.dxil file at the cache root, which only the HLSL + DXC path writes. The direct translator keeps its DXIL under translated/ (#1426), so the find(...).unwrap() at gpu_compute_e2e.rs:114 panics before anything GPU-related is checked.

Related: #1469 and #1363 also edit this test (rename / runtime step, GPU-backend skip) but not the *.dxil lookup; whichever lands second will need a small rebase.

What is in it

  • The test takes the single *.pso in cache/driver (and asserts there is exactly one).
  • When a *.dxil exists (HLSL path), it still checks that the blob's name matches the DXIL's hash and size.
  • Test-only change: nothing outside crates/xcl/tests/gpu_compute_e2e.rs.

Tested

  • hardware: NVIDIA RTX 5070 12 GB, driver 621.24, i7-12700K, Windows 11 26H2 (26300); rustc 1.100.0, DXC 1.9.2602.17; debug; base c160d86
  • cargo test -p xcl --test gpu_compute_e2e, 3 runs per mode:
before after
no variable 4 passed ×3 4 passed ×3
XCL_DIRECT_DXIL=1 3 passed, 1 failed ×3 4 passed ×3
XCL_DIRECT_DXIL=all 3 passed, 1 failed ×3 4 passed ×3
  • With the direct translator the warm run still reports "pipelines loaded from the driver cache 1".
  • cargo test --workspace --no-fail-fast -- --test-threads=4 at c160d86 with XCL_DIRECT_DXIL=all (before the fix): 857 passed, 1 failed (this test), 42 ignored (SKIPPED GPU tests: 2 no wave64, 1 no heap windows).

Regression run
Not needed: test-only change.

Not tested

  • AMD / RDNA hardware.
  • Full scripts\test.ps1 on this PR's head commit (only this test file changes).

AI use

  • Claude Code (claude-opus-5-5) found the cause, wrote the change and ran the tests;
**@⁠IgorAntunes66** on GitHub · 2026-11-24 19:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/1674) `IgorAntunes66:lab/test-offline-pso-direct-dxil` → `main` · +12 −5 · 1 files · 1 commits · open `offline_compute_pipeline_is_reused_by_a_second_process` fails whenever `XCL_DIRECT_DXIL` is set (`=1` or `=all`): it takes the driver blob's name from a `*.dxil` file at the cache root, which only the HLSL + DXC path writes. The direct translator keeps its DXIL under `translated/` (#1426), so the `find(...).unwrap()` at `gpu_compute_e2e.rs:114` panics before anything GPU-related is checked. Related: #1469 and #1363 also edit this test (rename / runtime step, GPU-backend skip) but not the `*.dxil` lookup; whichever lands second will need a small rebase. **What is in it** - The test takes the single `*.pso` in `cache/driver` (and asserts there is exactly one). - When a `*.dxil` exists (HLSL path), it still checks that the blob's name matches the DXIL's hash and size. - Test-only change: nothing outside `crates/xcl/tests/gpu_compute_e2e.rs`. **Tested** - hardware: NVIDIA RTX 5070 12 GB, driver 621.24, i7-12700K, Windows 11 26H2 (26300); rustc 1.100.0, DXC 1.9.2602.17; debug; base c160d86 - `cargo test -p xcl --test gpu_compute_e2e`, 3 runs per mode: | | before | after | |---|---|---| | no variable | 4 passed ×3 | 4 passed ×3 | | `XCL_DIRECT_DXIL=1` | 3 passed, 1 failed ×3 | 4 passed ×3 | | `XCL_DIRECT_DXIL=all` | 3 passed, 1 failed ×3 | 4 passed ×3 | - With the direct translator the warm run still reports "pipelines loaded from the driver cache 1". - `cargo test --workspace --no-fail-fast -- --test-threads=4` at c160d86 with `XCL_DIRECT_DXIL=all` (before the fix): 857 passed, 1 failed (this test), 42 ignored (SKIPPED GPU tests: 2 no wave64, 1 no heap windows). **Regression run** Not needed: test-only change. **Not tested** - AMD / RDNA hardware. - Full `scripts\test.ps1` on this PR's head commit (only this test file changes). **AI use** - Claude Code (claude-opus-5-5) found the cause, wrote the change and ran the tests;
offline_compute_pipeline_is_reused_by_a_second_process took the driver
blob's name from a *.dxil file at the cache root, which only the HLSL +
DXC path writes. With XCL_DIRECT_DXIL (=1 or =all) the direct translator
keeps its DXIL under translated/, so the lookup panicked before anything
GPU-related was checked.

The test now takes the single *.pso in cache/driver, and still checks its
name against the DXIL's hash and size when a *.dxil exists.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:01:13 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 21:37 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 21:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/1674#issuecomment-7145179332) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
Author
Owner

@⁠PHeitor1 on GitHub · 2026-11-24 22:26 UTC · original

Tested 8742034 merged onto main 689f2db (clean) on Blackwell: the test fails on main with the direct translator and passes with this PR.

Tested

  • RTX 5060 Ti 8 GB (32-lane waves), NVIDIA 621.24, Ryzen 5 5600X, Windows 11 Pro 26300, rustc 1.100.0 MSVC, DXC 1.9.2602.17, debug, Developer Mode off. cargo test -p xcl --test gpu_compute_e2e, 5 runs per cell, the two trees alternating:
XCL_DIRECT_DXIL main 689f2db + this PR
unset 4 passed ×5 4 passed ×5
1 3 passed, 1 failed ×5 4 passed ×5
all 3 passed, 1 failed ×5 4 passed ×5
  • Every failure is offline_compute_pipeline_is_reused_by_a_second_process.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 with the PR, XCL_DIRECT_DXIL unset and 1: 971 passed, 4 failed, 45 ignored, both times. The 4 are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0 to _3 (CreateComputePipelineState 0x8007000E). They fail the same way on plain 689f2db and came in with #1679, so they are not from this PR. SKIPPED: the no wave64 cases, three per-lane form: refused cases, no heap windows, and the Developer Mode one.

Not tested: AMD / Intel, release.

Run and written with Claude Code (Claude Opus 5.5).

**@⁠PHeitor1** on GitHub · 2026-11-24 22:26 UTC · [original](https://github.com/xcl-dev/xcl/pull/1674#issuecomment-7146242134) Tested `8742034` merged onto `main` `689f2db` (clean) on Blackwell: the test fails on `main` with the direct translator and passes with this PR. **Tested** - RTX 5060 Ti 8 GB (32-lane waves), NVIDIA 621.24, Ryzen 5 5600X, Windows 11 Pro 26300, rustc 1.100.0 MSVC, DXC 1.9.2602.17, debug, Developer Mode off. `cargo test -p xcl --test gpu_compute_e2e`, 5 runs per cell, the two trees alternating: | `XCL_DIRECT_DXIL` | `main` `689f2db` | + this PR | |---|---|---| | unset | 4 passed ×5 | 4 passed ×5 | | `1` | 3 passed, 1 failed ×5 | 4 passed ×5 | | `all` | 3 passed, 1 failed ×5 | 4 passed ×5 | - Every failure is `offline_compute_pipeline_is_reused_by_a_second_process`. - `cargo test --workspace --no-fail-fast -- --test-threads=4` with the PR, `XCL_DIRECT_DXIL` unset and `1`: 971 passed, 4 failed, 45 ignored, both times. The 4 are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0` to `_3` (`CreateComputePipelineState` 0x8007000E). They fail the same way on plain `689f2db` and came in with #1679, so they are not from this PR. SKIPPED: the `no wave64` cases, three `per-lane form: refused` cases, `no heap windows`, and the Developer Mode one. **Not tested:** AMD / Intel, release. _Run and written with Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠cindertheblue on GitHub · 2026-11-24 23:44 UTC · original

Tested 8742034 merged onto main 689f2db (clean merge, only crates/xcl/tests/gpu_compute_e2e.rs changes) on AMD, which the description lists as not tested: the test fails on main with the direct translator and passes with this PR, in every run.

Tested

  • AMD Radeon RX 7600 XT 16 GB (RDNA3, 64-lane waves), driver 32.0.31041.1004 (AMD Software 26.8.1), Ryzen 5 9600X, Windows 11 Home 26200.9974, rustc 1.99.1, DXC 1.8.2502.11 (SDK 10.0.26100), debug. Each tree built with cargo build --workspace in its own folder.
  • cargo test -p xcl --test gpu_compute_e2e -- --nocapture, 3 runs per cell, the two trees alternating:
XCL_DIRECT_DXIL main 689f2db + this PR
unset 4 passed ×3 4 passed ×3
1 3 passed, 1 failed ×3 (offline_compute_pipeline_is_reused_by_a_second_process) 4 passed ×3
all 3 passed, 1 failed ×3 (the same test) 4 passed ×3
  • SKIPPED in this file: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows), in every run on both trees.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on the merged tree: 974 passed, 1 failed, 45 ignored, both unset and with XCL_DIRECT_DXIL=1 (on main 689f2db with =1: 973 passed, 2 failed). The one failure left is gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, the AMD seed 722 mismatch from #1679, which this PR doesn't touch.

Not tested

  • A release build; scripts\test.ps1 itself (the same commands, run directly).
  • The PR's own head 8742034 without the merge onto 689f2db.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this comment from the real output; checked by me before posting.
**@⁠cindertheblue** on GitHub · 2026-11-24 23:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/1674#issuecomment-7147741616) Tested `8742034` merged onto `main` `689f2db` (clean merge, only `crates/xcl/tests/gpu_compute_e2e.rs` changes) on AMD, which the description lists as not tested: the test fails on `main` with the direct translator and passes with this PR, in every run. **Tested** - AMD Radeon RX 7600 XT 16 GB (RDNA3, 64-lane waves), driver 32.0.31041.1004 (AMD Software 26.8.1), Ryzen 5 9600X, Windows 11 Home 26200.9974, rustc 1.99.1, DXC 1.8.2502.11 (SDK 10.0.26100), debug. Each tree built with `cargo build --workspace` in its own folder. - `cargo test -p xcl --test gpu_compute_e2e -- --nocapture`, 3 runs per cell, the two trees alternating: | `XCL_DIRECT_DXIL` | `main` `689f2db` | + this PR | |---|---|---| | unset | 4 passed ×3 | 4 passed ×3 | | `1` | 3 passed, 1 failed ×3 (`offline_compute_pipeline_is_reused_by_a_second_process`) | 4 passed ×3 | | `all` | 3 passed, 1 failed ×3 (the same test) | 4 passed ×3 | - `SKIPPED` in this file: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows), in every run on both trees. - `cargo test --workspace --no-fail-fast -- --test-threads=4` on the merged tree: 974 passed, 1 failed, 45 ignored, both unset and with `XCL_DIRECT_DXIL=1` (on `main` `689f2db` with `=1`: 973 passed, 2 failed). The one failure left is `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`, the AMD seed 722 mismatch from #1679, which this PR doesn't touch. **Not tested** - A release build; `scripts\test.ps1` itself (the same commands, run directly). - The PR's own head `8742034` without the merge onto `689f2db`. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this comment from the real output; checked by me before posting.
This pull request has changes conflicting with the target branch.
  • crates/xcl/tests/gpu_compute_e2e.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1674/head:github-bot/gh-1674'
git switch 'github-bot/gh-1674'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1674'
git switch 'github-bot/gh-1674'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1674'
git switch 'github-bot/gh-1674'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1674'
git switch 'main'
git merge --squash 'github-bot/gh-1674'
git switch 'main'
git merge --ff-only 'github-bot/gh-1674'
git switch 'main'
git merge 'github-bot/gh-1674'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.