mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #697] Windows HIP / gfx1201: prompt stalls at GPU rang 0; post-store __threadfence_system() resolves it #322
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#322
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 @32x-k on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/697
I'm running Strata on Windows with an AMD Radeon AI PRO R9700 (gfx1201).
Prompt processing consistently stalled during the initial prompt. The stall diagnostics showed:
This occurred repeatedly before the change.
Diagnostic test
As a diagnostic test, I tried adding
__threadfence_system()immediately after the store toseqindoorbell_publish_kernel.This is the only change I made to the kernel:
After rebuilding Strata with this one-line change, the same configuration successfully completed inference for the first time:
I then sent another prompt in the same session, which also completed successfully:
The attached log contains both the original stalls and the subsequent successful runs using the patched binary.
Environment
32.0.31041.1004(2026-08-17)strata-device:71726391 / 71726391amdhip64_7.dll99f3dbd0b21d1401b3769e0c0d963913607f380bNote
This change was suggested while troubleshooting the issue with an AI assistant, so I'm not sure whether adding the post-store system fence is the correct upstream fix.
I'm reporting it because the original build consistently stalled before the first layer was served, while the build with this one-line change successfully completed inference and handled a subsequent prompt.
strata-q2_0-redacted.log
@Niko1221 commented on GitHub (Oct 6, 2026):
Fixed in 0.1.40: the HIP doorbell kernels now fence (__threadfence_system) after the ring store, as in your diagnostic. HIP only; the CUDA kernels are unchanged. Thank you for the precise trace.