tests: run compute load-format draw cases concurrently #2355
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2355
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2355/head"
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?
@tedin7 on GitHub · 2026-11-25 13:30 UTC · original
tedin7:x2w-448-heavy-tests→main· +53 −32 · 1 files · 3 commits · merged 2026-11-25 14:22 UTCPart of #448
What this unblocks:
compute_store_aot_descriptor_load_format_warp, the slowest test in Windows WARP runs (119 s dev, 84 s release atab096620on #2059), no longer launchesoffscreen_checkone case at a time.What changes
tests/compute_load_format_check.py drawran every case (2 dispatches, the refused formats, their placeholder references, the wrong references and the mutated sources) one after the other through a single sharedload.casefile. Each launch creates a new D3D12 device, which is the cost #448 measures.Now every case writes its own case file (and, for mutations, its own
.hlsl/.cso), and the launches run on aThreadPoolExecutorwith at mostmin(4, os.cpu_count())workers. The results are checked afterwards in the original order, with the original conditions and messages:word=0 expected=... actual=c5c5c5c5;Compute readback differs.No case or check is removed.
startup_mrt_check.pyis not changed here: its formats share a cache directory and a manifest that is renamed mid-test, so it needs a Windows profile before any change.Verification
Linux (this branch):
Windows Server 2025 WARP at
3b9fdc77(4 focused tests:compute_heap_view_controls,compute_load_format_controls,compute_store_aot_descriptor_load_format_warp,compute_store_aot_heap_view_load_warp):Before, on main code at
333213c0(#2059 full run),compute_store_aot_descriptor_load_format_warpalone took 119 s dev / 84 s release, and in the latest #2059 dev run it hit the 120 s ctest timeout under load.AI-assisted; commands listed were executed locally.
@RavenCurseBurg on GitHub · 2026-11-25 13:46 UTC · original
I compared the serial fixture at the merge base
b5d1ea2ewith3b9fdc77using the same DXC 1.9.2609 and renderer on Windows 11 build 26100.9711. Each invocation ran the fullpython -B tests/compute_load_format_check.py draw <dxc> <offscreen_check> <backend>entry point. Elapsed times in seconds:WARP order was serial / PR / PR / serial. Hardware ran PR then serial, one trial each. All eight invocations passed the same 7 dispatches, 14 wrong references and 11 source mutations. I also compared the seven ordered renderer summaries per invocation: 320 words, zero mismatches in each. The hardware adapter names were confirmed in the child output; local D3D12 debug layer unavailable.
I took the separate shared-cache MRT timing question to #448.
@tedin7 on GitHub · 2026-11-25 13:53 UTC · original
Thanks for the side-by-side timing. Your run used the current head
3b9fdc77, and it matches what we saw: WARP drops from about 46-48 s to about 18 s, and the two hardware adapters also get faster. All eight runs report the same 7 dispatches, 14 wrong references and 11 mutations, with zero summary mismatches, so running the draws in parallel does not change the results.On our side, Win2025 WARP at
3b9fdc77passes 4/4 in both dev and release (x2w_pipe.py win2025 2355). The CTest wall time for these targets is 44.2 s dev and 40.6 s release, down from 119 s and 84 s.Following the shared-cache MRT question in #448.
AI-assisted; commands listed were executed locally.
@tedin7 on GitHub · 2026-11-25 13:56 UTC · original
Independent verification of
3b9fdc77: PASS.case{N}.bin,mutated{N}.*); no file is shared between threads. Checks still run in the original order with the same messages and conditions; no case was dropped.CalledProcessErroras before, so the exit code is unchanged.x2w_pipe.py win2025 2355): 4/4 dev and 4/4 release.compute_store_aot_descriptor_load_format_warptakes 44 s dev and 39 s release.Part of #448,What this unblocks:,Verification:; commits carry no generated-by trailers.Moving to Ready for review.
AI-assisted; commands listed were executed locally.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 13:56 UTC · original · edited 2026-11-25 13:59 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
3b9fdc7ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@tedin7 on GitHub · 2026-11-25 14:21 UTC · original
Win2025 WARP receipt for head
ad6de589after updating with main.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
ad6de589f46a25e12d5fb87591d2876671f711e4:--preset dev):cmake --build --preset dev --target offscreen_check -- -j 2):0.00s(configure0.00s)ctest --preset dev -R '^(compute_heap_view_controls|compute_load_format_controls|compute_store_aot_descriptor_load_format_warp|compute_store_aot_heap_view_load_warp)$' --parallel 2 --no-tests=error --output-on-failure): 4/4 passed (40.32s:compute_store_aot_heap_view_load_warp24.00s,compute_heap_view_controls1.84s,compute_load_format_controls2.01s,compute_store_aot_descriptor_load_format_warp40.08s)/O2(--preset release):cmake --build --preset release --target offscreen_check -- -j 2):0.00s(configure0.00s)ctest --preset release -R '^(compute_heap_view_controls|compute_load_format_controls|compute_store_aot_descriptor_load_format_warp|compute_store_aot_heap_view_load_warp)$' --parallel 2 --no-tests=error --output-on-failure): 4/4 passed (33.59s:compute_store_aot_heap_view_load_warp9.25s,compute_load_format_controls0.95s,compute_heap_view_controls0.90s,compute_store_aot_descriptor_load_format_warp33.29s)sccache: 0/3 hits; wall90.6sAI-assisted; commands listed were executed locally.