Repository navigation
compute: name why a compiled program gets no runtime manifest - #3268
Conversation
Each refusal in format_compute_runtime_manifest now returns a fixed reason. compile_dxil --requests writes it to <key>.fail beside the published .cs.cso, --watch writes it instead of the reasonless line, --refusals counts it, and triage_run.py reports it as an allowlisted category. Accepted manifests and published files are unchanged. Refs R0Y00#3224 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
R0Y00
left a comment
There was a problem hiding this comment.
--requests now writes a newer <key>.fail for a successful DXIL compile that did not produce a manifest. I reproduced a behavior change in the existing Python watcher: with a synthetic req_<key>.c67, a <key>.cs.cso and no manifest, pending_keys(directory, True) selects the request. Adding the proposed diagnostic .fail newer than the request makes the same call return an empty list. pending_keys(directory, False) still selects it. The normal -Render -Translate launcher uses --watch, which switches to the repeated-pass behavior after its first successful pass. A request first seen during a run can therefore lose its Python translation attempt if the offline C++ batch writes this diagnostic into the live cache first.
Please keep those offline diagnostic entries out of the retry marker, and cover the two watcher selections with an end-to-end control that distinguishes an incomplete C++ publication from a genuine watcher failure. The named reasons, census and byte-identical accepted-manifest control are useful to keep.
A program that compiles but gets no runtime manifest is not a failed request: .fail is the retry marker of both watchers, and with --skip-failed the Python watcher stopped selecting such a key in a live cache (review of R0Y00#3268). --requests now removes .fail as before and prints the reason in the job report as no_manifest input=... <reason>. --watch, which refuses the key, still writes the reason to its .fail. The end-to-end check runs --requests in a live cache beside a genuine refusal and checks both pending_keys selections, plus the --watch case. Refs R0Y00#3224 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, you're right: a program that compiles without a manifest isn't a failed request, and
Retested on Windows 11 build 26300, Debug, Windows SDK 10.0.26100: AI-assisted. |
R0Y00
left a comment
There was a problem hiding this comment.
The new head fixes the watcher regression. In --requests, a successful DXIL compile with no runtime manifest stays eligible for a Python watch pass and records its named reason in the job report. An actual watch failure still leaves the standard retry marker. The end-to-end test checks both pending_keys modes and includes a genuinely refused request.
On main 5033d2d3 plus 50740b7c (tree 5bcfc2d6), Debug and Release /O2 passed all five tests with zero skips. The Python triage check also passed.
ctest --test-dir <build> --no-tests=error --output-on-failure -j 1 -R '^(native_compute_manifest_reasons|native_compute_manifest_reasons_requests|native_compile_dxil_refusals|native_compile_dxil_watch|native_startup_request_cache_controls)$'
python -B tests/startup_triage_run_check.py
Refs #3224
Behavior
format_compute_runtime_manifest(src/direct_compute_cache.cpp) returnedstd::nulloptfrom 11 places without saying why. A compute program that compiles to DXIL but gets no manifest can't be dispatched translated, and incompile_dxil --requestsit left no trace. In the 878-request census of #3224, 84 shaders fall in this bucket.std::string *reasonparameter. Exits that tested two or three conditions are split, for example a resource heap view, the sampler heap, and a view above root parameter 15. When a view kind has no manifest line, the reason names the kind, and for images the ISA dimension andarray, for exampleSRV kind root_buffer_srvorUAV kind texture_uav cube. The reasons hold no register numbers, offsets or keys.native_compute_output_revisionis unchanged.compile_dxiluses one line for all routes,unsupported startup runtime manifest bindings: <reason>, which keeps the start of the existing--watchtext:--requestsstill publishes<key>.cs.cso, writes no<key>.txt, counts the request as compiled and removes<key>.fail. The exit status and therequests= compiled= refused=line are unchanged. It prints the reason in that job's report asno_manifest input=req_<key>.c67 <line>. It writes no.fail, because.failis the retry marker of both watchers.--watchwrites the reason where it used to write the bare line.--refusalscounts such a request under its reason. Before, it counted it as no refusal.triage_run.pyreports these lines asruntime manifest: <reason>, matched against an allowlist. Any other text is still reported as "other (text omitted)".format_graphics_runtime_manifestis not changed.Tests
native_compute_manifest_reasons(C++) calls the formatter on 18 source-written programs, one or more per reason, and checks the exact reason. It also checks that the accepted program's manifest text is unchanged.native_compute_manifest_reasons_requestsruns one reachable case end to end. The program reads a root CBV and a root SRV (the program ofnative_compute_raw_root), so it compiles but has no manifest line.--requestsruns in a live cache that also holds a genuinely refused request (an undecodable word) and a table-bound control. The control publishes its manifest. The compiled key gets its.cs.cso, no.txt, and no.fail(a stale one is removed); its reason is on stdout. The refused key keeps its.fail.pending_keys(dir, False)selects the compiled key and the refused key;pending_keys(dir, True)still selects the compiled key and skips the refused one.--watch --oncerefuses the compiled key with the reason in its.fail, a genuine watcher failure:pending_keys(dir, True)skips it andpending_keys(dir, False)selects it.--refusals --jsonandtriage_run.py.tests/startup_triage_run_check.pygets a sample line for the new category and a leak control: a disallowed reason text maps to "other".docs/experiments/native-compile-dxil-refusals.mdis updated.Verification
Commits
3ea1a79f+50740b7conmainc827d8ba. Windows 11 build 26300, MSVC x64, Windows SDK 10.0.26100. No GPU is involved.Negative control: with the formatter no longer recording reasons (one line changed),
native_compute_manifest_reasonsreports18 of 19 manifest reasons wrong. All 18 reason cases fail and only the accepted-program case passes.native_compute_manifest_reasons_requestsfails on the missing reason. With--requestswriting the reason to.failagain (the first revision of this PR), it fails atpending_keys(dir, True), which returns[]: the behavior from the review. With the change restored, both pass.Not in this PR
default: return std::nullopt;that would need a reason after rebase. The test uses a cube UAV, which stays refused under that hunk.AI-assisted.
🤖 Generated with Claude Code