Repository navigation
tests: retry a missing compute translation on the same live slot 67 pipeline - #2716
Conversation
…ation Fence the untranslated first call, run the real offline compiler while the original device and pipeline stay alive, and check all output words on the second call. Repeat without publishing as a negative control. AI-assisted with Codex (GPT-6.2 Astra, xhigh). (cherry picked from commit 3d596a2)
tedin7
left a comment
There was a problem hiding this comment.
Review of head ffbc2f76 (the PR's own diff is unchanged from 5bc3211c; head only merged main).
What I checked:
- The new
startup_compute_live_retry_check.pyholds one device and one slot 67 pipeline across two fenced Dispatch calls. The first readback must keep all sentinel words, then the offline translation is published, and the second readback must match the expected words. The unpublished case requires two refusals and two untouched readbacks. That guards the retry behavior. prepare_caseis a plain extraction fromstartup_compute_dispatch_check.pywith the same setup; thedispatch-retrybranch instartup_stream_consumer.cpponly adds the first fenced dispatch and a stdin wait before the normal path.- CMake registers
startup_compute_live_retry_{warp,hardware}next to the sibling dispatch tests with the same timeout and skip code. git diff --check origin/main...HEADclean. CI green on this head.
Windows Server 2025 WARP, dev and release, 3/3 each: startup_compute_(live_retry|dispatch|dispatch_heap)_warp.
Note: startup_compute_dispatch_texture_warp fails on this runner (refusal text an output texture entry is not the token of an unordered access view instead of the expected an output texture view was not created on the desktop, at tests/startup_compute_dispatch_texture_check.py:101). It fails identically with this PR's changes removed, so it is not caused by this PR. Someone should look at it separately.
AI-assisted; commands listed were executed locally.
|
Win2025 WARP receipt for head ffbc2f7 after updating with main. Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
AI-assisted; commands listed were executed locally. |
Refs #2274 (part B).
#2532 brought the direct Dispatch path and its manifest retry to main. This ports the previously measured live-pipeline fixture onto
546d881b. It holds one device and one slot 67 pipeline across two fenced Dispatch calls in the same process.The first readback must retain all 320 sentinel words. While the consumer waits, Python runs the real offline translator on its single request, waits for the retry interval and releases the same process. The second readback must match all 288 written words and 32 untouched words. A separate run leaves that request unpublished and requires two refusals and two entirely untouched readbacks.
Reproduce
Results at
5bc3211cI built the consumer,
d3d12_xs.dllandxg_xs.dllfrom this head on Windows 11 build 26100.9711 with Zig/Clang 0.13.0, MinGW headers and Windows SDK 26100 definitions for flag operators, the missing HRESULT and the debug-name GUID. The machine's Direct3D debug layer was unavailable. Running each Python entry point directly on Intel UHD 770 (32.0.101.5973), RTX 4060 (32.0.15.9579) and WARP (10.0.26100.9711) gave these results.For a separate negative control, I removed just the timed reload condition from
dispatch_translatedand rebuilt the runtime. All three adapters still passed the unpublished control. After publication all three failed the new fixture with two missing-translation refusals, and the second readback still held 320 sentinels. The unmodified runtime passed the same inputs on each adapter.The adjacent texture check reached
texture-store-deniedand observed the missing-UAV-token reason instead of the expected uncreated-view reason. #2710 tracks that existing main failure. The upstream Windows, Linux and LLVM checks passed.AI-assisted with Codex (GPT-6.2 Astra, xhigh).