mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1018] [gfx906] gr_up_fast_kernel<GrMulti> aborts the engine with HSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATION on long-context chats (intermittent; the non-fast path is stable) #446
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#446
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 @drumblund on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1018
[gfx906]
gr_up_fast_kernel<GrMulti>aborts the engine withHSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATIONon long-context chats (intermittent; the non-fast path is stable)Environment
--layer-split 25mixa3607/rocm-gfx906:7.14-completecontainer (ROCm 7.14 community build with gfx906 kernels)6f32ec0with-DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906, plus two small compile fixes for gfx906 (available on request)--mmap-experts --expert-cache auto --prefill 4096 --spec 4 --spec-min-p 0.5 --mtp ... --max-context 262144 --kv int8 --pool-workers 15 --layer-split 25 --trim-stage-weights --vram-reserve-mib 1024STRATA_ARENA_MMAP=1,STRATA_NO_LARGEPAGES=1,kernel.numa_balancing=0Symptom
The engine aborts (exit
-6) and the server restarts it. Both occurrences named the same kernel:The coredump block that follows:
Trigger conditions
--spec 4, MTP drafts).Not address-space exhaustion
dmesgat boot says:so the per-VM GPU VA aperture is 256 TB and the process's total GPU allocations are ~100 GB. This looks like a wild pointer / lifetime problem in the fast path rather than an aperture limit.
Workaround
STRATA_GR_FAST=0(the non-fastgr_up_multi_kernelpath) has been stable for hours under the same workload. Cost measured on a 4K-context, 300-token probe: decode ~40 → ~32.5 tok/s (-18%), which is why I would prefer a real fix.Notes
#if defined(STRATA_HIP_GFX906)insrc/kernels/cuda/fused_gr.cu), so this will only show up on gfx906 builds.gr_up_fast_kernel(fused_gr.cu:904) is launched fromfused_gr_read_multi(fused_gr.cu:814 and :1145) withUPM_BLOCKSblocks (160 for this model). The dispatch header in the dump showsgrid=[40960, 1, 1], which does not matchUPM_BLOCKS— possibly the dump describes a neighbouring dispatch rather than the faulting one; flagging in case it helps.operation would make the legacy stream depend on a capturing blocking stream, worked around with--prompt-cache-every 0); happy to file it separately if useful.Any pointers on where the fast path can compute an out-of-range address would be much appreciated — we can rebuild and test patches quickly.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.