mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #2187] [MERGED] device-fault: AMD buffer-marker breadcrumbs name the dispatch that hung (RT-DEVICE-MARKERS-AMD) #2192
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2192
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2187
Author: @aslan2142
Created: 11/26/2026
Status: ✅ Merged
Merged: 11/26/2026
Merged by: @aslan2142
Base:
main← Head:device-markers-amd📝 Commits (1)
e418c1evulkan: AMD breadcrumbs name the dispatch that hung (LEONIDA_DEVICE_MARKERS)📊 Changes
12 files changed (+907 additions, -16 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+30 -0)📝
runtime/CMakeLists.txt(+18 -0)📝
runtime/README.md(+1 -0)📝
runtime/shims/d3d12_com.h(+1 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+9 -2)📝
runtime/src/vulkan_backend.h(+5 -2)📝
runtime/src/vulkan_device_fault.h(+148 -12)➕
runtime/src/vulkan_device_markers.h(+245 -0)📝
runtime/src/vulkan_replay.h(+2 -0)➕
runtime/test/vk_device_markers_test.cpp(+142 -0)📝
runtime/test/vk_test_device.h(+6 -0)➕
runtime/test/vulkan_device_markers_test.cpp(+300 -0)📄 Description
On AMD a GPU hang ends in
VK_ERROR_DEVICE_LOSTwith no checkpoints, so the device-fault report can only list what was in flight (64 dispatches in one hang today). This addsLEONIDA_DEVICE_MARKERS=1, so the report names the dispatch that hung.Item: RT-DEVICE-MARKERS-AMD
LEONIDA_DEVICE_FAULT=1/2andVK_AMD_buffer_marker; otherwise it logs one "unavailable" line. Off by default.seqat top and bottom of pipe into one persistent host-visible buffer, one slot per queue.seq, and the oldest started-but-unfinished dispatch marked as the likely hang (best-effort after a loss). A history of the last 16,384 dispatches names it even after it has left the 64-entry list.seqis now given out when a dispatch is recorded, so the markers and the "submitted dispatch" list share one numbering.vulkan_device_markers(CPU, runs in the Linux subset) andvk_device_markers(GPU, skipped without the extension). Docs: aruntime/README.mdrow anddocs/d3d12_vulkan.md4.11.main.AI-assisted (Claude Code, Claude Opus 5.5).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.