Repository navigation
vulkan: with LEONIDA_DEVICE_FAULT_ROOTS a dispatch checkpoint names its own dispatch (RT-FAULT-CHECKPOINT-DISPATCH) - #1934
Conversation
…ts own dispatch (RT-FAULT-CHECKPOINT-DISPATCH) The device-fault report lists the last 64 dispatches across queues. In the world-start losses of 1.0.2.1 all 64 belonged to one late submission, so the dispatch at the NVIDIA checkpoint, in an earlier submission, was gone. In one boot, execute #4605 had replaced the entries for the checkpoints of #4598, #4599 and #4601. With LEONIDA_DEVICE_FAULT_ROOTS=1 each of the 64 recent submissions now keeps its own dispatches, and a dispatch checkpoint is followed by a "checkpoint dispatch" line with the exact dispatch: groups or indirect arguments and the root words. vulkan_device_fault_roots runs the test with the mode on: a checkpoint at a submission's last dispatch, pushed out of the global history by a later submission of 64 dispatches, is still found. The same test fails with the old clearing. Prototype and diagnosis by Codex (OpenAI); ported to current main and tested here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MoonEyes
left a comment
There was a problem hiding this comment.
LGTM
Setup: Windows 11 Pro 26300, MSVC 19.44.35230.0 (VS 2022), CMake 3.31.6 + Ninja, RelWithDebInfo, -DLEONIDA_REQUIRE_VULKAN=ON, Vulkan SDK 1.4.363.0. main = b9320a118. Only vulkan_device_fault_test was built and run (ctest -R "^vulkan_device_fault": vulkan_device_fault, and the new vulkan_device_fault_roots with LEONIDA_DEVICE_FAULT_ROOTS=1). Not run: the whole ctest set, any game boot.
Head f6448b05b.
- PR head: 2/2 Passed.
main:vulkan_device_faultPassed (1/1; the_rootstest does not exist there).- PR merged into
mainlocally (runtime/CMakeLists.txtauto-merged): 2/2 Passed. - Mutant A (PR test and CMake lines,
runtime/src/vulkan_device_fault.hofmain): does not build,error C2039: 'checkpoint_dispatches_found'is not a member ofleonida::DeviceFaultDiagnostics(test line 164). This only shows the test needs the new accessor. - Mutant B (PR header with the one line
if (!include_roots_) submission.dispatches.clear();changed back to the unconditionalsubmission.dispatches.clear();):vulkan_device_faultPassed,vulkan_device_fault_rootsFailed; the executable returns 10 with the variable set and 0 without. This confirms the description's "fails (exit 10) with the old clearing put back".
The test uses mocked device-fault and checkpoint entry points, so the result does not depend on the GPU. The printed checkpoint dispatch line itself is not asserted, only the count of found dispatches.
AI-assisted: yes (Claude Code built and ran the tests)
Keep per-submission dispatch roots alongside AMD marker numbering and hang reports. Conflict resolution assisted by Codex.
|
Independent real-fault exercise of ac16dbe (not current headd05321a8), local f448c712a Linux/Wine11.22/RTX3070Ti/NVIDIA620.73.04: GPU loss at474.73s with ROOTS=1. Three compute checkpoint submissions recover their exact dispatch root records; another compute checkpoint says its dispatch is not in that submission history. A direct-queue draw checkpoint remains outside this dispatch-only feature. No attribution to the last shader label. The missing compute record has a specific bounded-history explanation: that submission contains many later dispatches, so its early checkpoint is outside CheckpointSubmission::dispatch_limit=64 (vulkan_device_fault.h:175-180), even though retaining the submission fixes cross-submission eviction. CPU-only reduction with the exact existing vulkan_device_fault_test: original mocked checkpoint at command70 passes with ROOTS=1. Changing only the reported checkpoint to command0 (already evicted by that same71-dispatch submission) gives the missing-history line and expected test exit10. Both compiled/reran natively with Clang23 C++20 ASan+UBSan; no sanitizer report. This is a diagnostic coverage limit, NOT a reproduction of the GPU fault. I am not implementing a second history scheme or treating your current bounded behavior as an undocumented promise violation. Please consider retaining early checkpoint-selectable dispatches or explicitly documenting this within-submission limit in your existing ownership. All raw retail content stays local. AI-assisted (OpenAI GPT-6.1 Sol). |
…4 of its dispatches Review of RT-FAULT-CHECKPOINT-DISPATCH (djrolfes): a real loss reported a compute checkpoint whose dispatch was not in its submission's history. That submission had 71 dispatches and the per-submission ring kept the last 64, so an early checkpoint fell out of it. - In this mode a submission keeps up to roots_dispatch_limit (1,024) dispatches (CheckpointSubmission::keep); without it, the last 64 as before. The global history still takes only a submission's last 64. - Past the limit the report says how many dispatches the submission recorded and how many it kept, so the limit shows in the log. Documented in d3d12_vulkan.md. - vulkan_device_fault_test now puts the checkpoint at command 3 of 71, the case from the report. With the old limit vulkan_device_fault_roots fails (exit 7). Changes made by Claude Code (AI-assisted). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JPqXc6svM4pbBagTsVEYA3
|
@djrolfes thanks for the real-fault run. The missing line was the 64-dispatch per-submission ring, as you found.
Tested: Generated by Claude Code |
|
#1934 | head bf1fce7 (merged cleanly with main d48a957) | |
Claimed in the coordination issue as RT-FAULT-CHECKPOINT-DISPATCH: #1608 (comment)
Problem
The device-fault report lists the last 64 dispatches submitted across all queues. In the world-start losses of 1.0.2.1 on an RTX 5070 Ti, all 64 belonged to one late submission. That pushed out the dispatch that the NVIDIA checkpoint pointed at, which sat in an earlier submission: in one boot, execute #4605 had replaced the entries for the checkpoints of #4598, #4599 and #4601. The checkpoint gave the list and command but no groups, indirect arguments or root words.
Change
With
LEONIDA_DEVICE_FAULT_ROOTS=1:DeviceFaultDiagnostics::publishno longer clears it in this mode). Without the variable it is cleared as before, so the default costs nothing more.checkpoint dispatch, with the dispatch at exactly that submission, list and command: groups or indirect arguments, and the 32 root words. When it isn't there, the line says so.print_dispatchnow prints both these lines and the global history lines, which look as they did.docs/d3d12_vulkan.md4.11 describes the mode.Tested
vulkan_device_fault_roots(new, mode on):vulkan_device_fault(mode off): unchanged, it passes and finds nothing extra.Credit
Prototype and diagnosis by Codex (OpenAI), working with me on the same boots. I ported it to current main, which has gained the Aftermath hook and the stall checkpoints since, and added the CTest case.
🤖 Generated with Claude Code