Tests: offline compute pipeline test finds the driver blob with XCL_D… #1664
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1674"
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?
Imported from ivall/xcl. Originally posted by IgorAntunes66 on 2026-11-24T19:10:07Z.
offline_compute_pipeline_is_reused_by_a_second_processfails wheneverXCL_DIRECT_DXILis set (=1or=all): it takes the driver blob's name from a*.dxilfile at the cache root, which only the HLSL + DXC path writes. The direct translator keeps its DXIL undertranslated/(#1426), so thefind(...).unwrap()atgpu_compute_e2e.rs:114panics before anything GPU-related is checked.Related: #1469 and #1363 also edit this test (rename / runtime step, GPU-backend skip) but not the
*.dxillookup; whichever lands second will need a small rebase.What is in it
*.psoincache/driver(and asserts there is exactly one).*.dxilexists (HLSL path), it still checks that the blob's name matches the DXIL's hash and size.crates/xcl/tests/gpu_compute_e2e.rs.Tested
c160d86cargo test -p xcl --test gpu_compute_e2e, 3 runs per mode:XCL_DIRECT_DXIL=1XCL_DIRECT_DXIL=allcargo test --workspace --no-fail-fast -- --test-threads=4atc160d86withXCL_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
scripts\test.ps1on this PR's head commit (only this test file changes).AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T21:37:39Z.
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 unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by PHeitor1 on 2026-11-24T22:26:57Z.
Tested
8742034merged ontomain689f2db(clean) on Blackwell: the test fails onmainwith the direct translator and passes with this PR.Tested
cargo test -p xcl --test gpu_compute_e2e, 5 runs per cell, the two trees alternating:XCL_DIRECT_DXILmain689f2db1alloffline_compute_pipeline_is_reused_by_a_second_process.cargo test --workspace --no-fail-fast -- --test-threads=4with the PR,XCL_DIRECT_DXILunset and1: 971 passed, 4 failed, 45 ignored, both times. The 4 aregpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0to_3(CreateComputePipelineState0x8007000E). They fail the same way on plain689f2dband came in with #1679, so they are not from this PR. SKIPPED: theno wave64cases, threeper-lane form: refusedcases,no heap windows, and the Developer Mode one.Not tested: AMD / Intel, release.
Run and written with Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by cindertheblue on 2026-11-24T23:44:28Z.
Tested
8742034merged ontomain689f2db(clean merge, onlycrates/xcl/tests/gpu_compute_e2e.rschanges) on AMD, which the description lists as not tested: the test fails onmainwith the direct translator and passes with this PR, in every run.Tested
cargo build --workspacein its own folder.cargo test -p xcl --test gpu_compute_e2e -- --nocapture, 3 runs per cell, the two trees alternating:XCL_DIRECT_DXILmain689f2db1offline_compute_pipeline_is_reused_by_a_second_process)allSKIPPEDin 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=4on the merged tree: 974 passed, 1 failed, 45 ignored, both unset and withXCL_DIRECT_DXIL=1(onmain689f2dbwith=1: 973 passed, 2 failed). The one failure left isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, the AMD seed 722 mismatch from #1679, which this PR doesn't touch.Not tested
scripts\test.ps1itself (the same commands, run directly).8742034without the merge onto689f2db.AI use
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:40:59Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:28:15Z.
Triage (#1607) – head
8742034The failure this fixes is already fixed on main by
ec80c07("D3D12.X: reuse offline whole compute pipelines before splitting"):offline_compute_pipeline_is_reused_by_a_second_processincrates/xcl/tests/gpu_compute_e2e.rsnow runsxcl shaderswithXCL_DXIL_DUMP=allandTEMPset to the test directory, and takes the DXIL fromxcl-dxil-dumpwhen the direct translator wrote it (pso.rs::dump_direct), else from the cache root.The same hunk is rewritten there, which is why this PR conflicts. It still names the blob from the DXIL's hash in both modes, so the extra check of exactly one
*.psois the only part not on main.Recommendation: close (superseded by main commit
ec80c07).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:46:59Z.
Closing as superseded: this change is already on
main(ec80c071). main gpu_compute_e2e.rs offline_compute_pipeline_is_reused_by_a_second_process now reads the DXIL from XCL_DXIL_DUMP=all under %TEMP%/xcl-dxil-dump (added byec80c071); test-only PRTwo independent checks found this: Foniass's close list on #1607 and ours against current
main. If something here is still missing onmain, say so and reopen it, or ask and I will.AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.
Pull request closed