mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #873] [CLOSED] Fix first-kernel-launch crash on Windows (ROCm/Adrenalin WDDM startup race) #2887
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2887
Loading…
Add table
Add a link
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/Niko1221/Strata/pull/873
Author: @unimo-chan
Created: 10/5/2026
Status: ❌ Closed
Base:
main← Head:fix-windows-wddm-crash📝 Commits (1)
6232b14Fix first-kernel-launch crash on Windows (ROCm/Adrenalin WDDM startup race)📊 Changes
2 files changed (+52 additions, -6 deletions)
View changed files
📝
src/core/device.cu(+39 -5)📝
src/core/device_main.cpp(+13 -1)📄 Description
Problem
On Windows with an AMD card (gfx1100, Adrenalin driver), the ROCm runtime can race the WDDM driver at startup. When it loses the race,
hipMemGetInfofails and the engine crashed at the first kernel launch (0xC0000005inamdhip64_7.dll).Fix
device.cu:mem_get_info()now retrieshipMemGetInfoa few times (giving the driver time to settle); if it still fails it returns the error cleanly instead of crashing. The Windows/HIP path indevice_info()uses this retryingmem_get_infoinstead ofcudaMemGetInfo.device_main.cpp: device init + selftest are wrapped in a retry loop (5 attempts) so a transient startup failure recovers.Verified
selftest 5/5, server + chat OK, no first-kernel-launch crash on a RX 7900 XT / Adrenalin 32.0.32015.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.