mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3767] Windows HIP, 2× R9700: --peer-device hangs to driver timeout. Launch batching reproduced in a small probe #1584
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#1584
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?
Originally created by @wmmunn on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3767
Hi, a follow-up on the --peer-device hang on Windows (2x Radeon AI PRO R9700, driver 32.0.31041.5005 for ROCm 10.1; it also hung on PRO 26.Q3, ending in a driver timeout with 17 LiveKernelEvent records).
I think I've reproduced the mechanism in a 190-line HIP probe. Two single-thread kernels, one per card, ping-pong a flag through one hipHostMalloc(Coherent | Mapped | Portable) buffer (same address on the CPU and both cards), using system-scope release/acquire, with every wait bounded by time so it can't hang the driver.
So on Windows a launch can sit in the runtime's batch indefinitely until something submits that card's work (an event record, a sync, or the batch filling). Any kernel that spins waiting for a kernel on the other card will hang until TDR, unless each card's launch is flushed right after it's made.
If the peer tier exchanges through host memory, recording a timing-free event after every launch the other card waits on should fix it. That's what Radiance's Windows backend does after each collective. If it reads the other card's VRAM directly, note that this driver reports no peer access (hipDeviceCanAccessPeer = 0 both ways), so that path can't work on Windows regardless.
Happy to share the probe source or test a build.
@github-actions[bot] commented on GitHub (Oct 22, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@wmmunn commented on GitHub (Oct 22, 2026):
A few details I left out:
--peer-device 1. I haven't retested on 0.2.0-beta yet.whole 400 ms bounded wait, i.e. at least 400 ms. "Indefinitely" was my inference from the real
hang, not something the probe timed.
that it does so after every collective at two cards, so treat that as the approach, not a tested result.
Probe source attached (mailbox2.hip, single file, hipcc --offload-arch=gfx1201 -O2).
@github-actions[bot] commented on GitHub (Oct 28, 2026):
Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection.
To bring it back: fix the title (area prefix) and the missing parts, then comment
/reopen. A check runs and reopens it, or tells you what is still missing. See CONTRIBUTING.md.