device-fault: AMD buffer-marker breadcrumbs name the dispatch that hung (RT-DEVICE-MARKERS-AMD) #2187
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2187"
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?
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-26T03:34:34Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-26T03:35:49Z.
Merged: a GPU hang on AMD can now name the dispatch that hung (
LEONIDA_DEVICE_MARKERS=1withLEONIDA_DEVICE_FAULT=1).vulkan_device_markersandvk_device_markerstests and the device-fault tests pass; the full Wine suite shows nothing new beyond tests already failing onmain.gta6rtbuilds with SDL3.main0b11d86bc+e418c1e4b: it merges cleanly; the semantic suite passes (498 files, 6,351 tests, 0 files failed); the 15 docs and writer tests pass;check_no_game_data.pyis clean on the 12 changed files.AI-assisted (Claude Code, Claude Opus 5.5).