[PR #1934] vulkan: with LEONIDA_DEVICE_FAULT_ROOTS a dispatch checkpoint names its own dispatch (RT-FAULT-CHECKPOINT-DISPATCH) #1943

Open
opened 2026-11-26 21:19:29 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1934
Author: @kawaii-shakal
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: fault-roots-submission


📝 Commits (4)

  • f6448b0 vulkan: with LEONIDA_DEVICE_FAULT_ROOTS a dispatch checkpoint names its own dispatch (RT-FAULT-CHECKPOINT-DISPATCH)
  • ac16dbe Merge upstream main into fault-roots-submission
  • d05321a Merge upstream main into fault-roots-submission
  • bf1fce7 vulkan: with LEONIDA_DEVICE_FAULT_ROOTS a submission keeps up to 1,024 of its dispatches

📊 Changes

4 files changed (+84 additions, -24 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+6 -1)
📝 runtime/CMakeLists.txt (+2 -0)
📝 runtime/src/vulkan_device_fault.h (+56 -20)
📝 runtime/test/vulkan_device_fault_test.cpp (+20 -3)

📄 Description

Claimed in the coordination issue as RT-FAULT-CHECKPOINT-DISPATCH: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167618613

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:

  • Each submission keeps its dispatches. Each of the 64 recent submissions keeps its own dispatch history (DeviceFaultDiagnostics::publish no longer clears it in this mode). Without the variable it is cleared as before, so the default costs nothing more.
  • The checkpoint names its dispatch. A dispatch checkpoint the driver reports is followed by 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.
  • One print function. print_dispatch now prints both these lines and the global history lines, which look as they did.

docs/d3d12_vulkan.md 4.11 describes the mode.

Tested

  • vulkan_device_fault_roots (new, mode on):
    • a checkpoint at a submission's last dispatch, an indirect one with root word 5 = 42;
    • a later submission of 64 dispatches then pushes every entry of it out of the global history;
    • the report still finds and prints the dispatch.
  • Old clearing fails it: the same test fails (exit 10) with the old clearing put back.
  • vulkan_device_fault (mode off): unchanged, it passes and finds nothing extra.
  • Platform: Windows 11 Pro 26300, VS 2026 RelWithDebInfo; the test uses mocked device-fault and checkpoint entry points, no GPU.

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1934 **Author:** [@kawaii-shakal](https://github.com/kawaii-shakal) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fault-roots-submission` --- ### 📝 Commits (4) - [`f6448b0`](https://github.com/ubiquitarianism/leonida/commit/f6448b05bb255de5cfc93ccd6b985daa12c4f043) vulkan: with LEONIDA_DEVICE_FAULT_ROOTS a dispatch checkpoint names its own dispatch (RT-FAULT-CHECKPOINT-DISPATCH) - [`ac16dbe`](https://github.com/ubiquitarianism/leonida/commit/ac16dbe284e426954947c28ba03bf7196055ac28) Merge upstream main into fault-roots-submission - [`d05321a`](https://github.com/ubiquitarianism/leonida/commit/d05321a88414bf7197211294efae73a50a48431c) Merge upstream main into fault-roots-submission - [`bf1fce7`](https://github.com/ubiquitarianism/leonida/commit/bf1fce7fe1d74945b8f1792abb00470305037201) vulkan: with LEONIDA_DEVICE_FAULT_ROOTS a submission keeps up to 1,024 of its dispatches ### 📊 Changes **4 files changed** (+84 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+6 -1) 📝 `runtime/CMakeLists.txt` (+2 -0) 📝 `runtime/src/vulkan_device_fault.h` (+56 -20) 📝 `runtime/test/vulkan_device_fault_test.cpp` (+20 -3) </details> ### 📄 Description Claimed in the coordination issue as RT-FAULT-CHECKPOINT-DISPATCH: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167618613 ### 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`: - **Each submission keeps its dispatches.** Each of the 64 recent submissions keeps its own dispatch history (`DeviceFaultDiagnostics::publish` no longer clears it in this mode). Without the variable it is cleared as before, so the default costs nothing more. - **The checkpoint names its dispatch.** A dispatch checkpoint the driver reports is followed by `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. - **One print function.** `print_dispatch` now prints both these lines and the global history lines, which look as they did. `docs/d3d12_vulkan.md` 4.11 describes the mode. ### Tested - **`vulkan_device_fault_roots` (new, mode on):** - a checkpoint at a submission's last dispatch, an indirect one with root word 5 = 42; - a later submission of 64 dispatches then pushes every entry of it out of the global history; - the report still finds and prints the dispatch. - **Old clearing fails it:** the same test fails (exit 10) with the old clearing put back. - **`vulkan_device_fault` (mode off):** unchanged, it passes and finds nothing extra. - **Platform:** Windows 11 Pro 26300, VS 2026 RelWithDebInfo; the test uses mocked device-fault and checkpoint entry points, no GPU. ### 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](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1943
No description provided.