mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3358] [Engine] HIP virtual memory (0.2.0-beta): vmm_test memory fault on gfx1011 (BC-160) with ROCm 7.14 #1360
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#1360
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 @andyelka-creator on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3358
Area: [Engine]
Desktop app, Terminal or source? Source (a build)
Reproduction status: Reproduced locally
Strata version: Strata 0.2.0-beta · engine 0.1.45.3 (tag
v0.2.0-beta, commit3d1fb480)Graphics card, memory and system: 3× AMD BC-160 (Navi 12, gfx1011, 8 GB HBM2 each) · 16 GB RAM · Ubuntu, kernel 7.0.0-38-generic (in-tree amdgpu), HIP 7.14.60850 from TheRock wheels
rocm[libraries,devel]==7.14.0a20260608(gfx101X-dgpuindex)Model, size and settings: none — this is
ctest, no model was loadedWhat happened
Re-test of #2374 on 0.2.0-beta. The original problem is fixed:
hip_q2_zerogives 1024 values, 0 failures on all three cards.vmm_testnow fails. On 0.1.43.1 it reported Passed, but therevmm.cpphad no HIP path, so the test took its "skipped" branch. The HIP ranges from3980a5ceare the first time it really runs on this card.The failure is at the
cudaMemsetaftera.map_range(3, 7, ...), which covers the chunks just remapped into the hole:Kernel log at the same moment:
There was no GPU reset, and the cards kept working afterwards.
Three runs per card, with nothing else on the GPUs:
HIP_VISIBLE_DEVICES)Page faults appear in the kernel log for all three cards. With
STRATA_HIP_VMM=0the test printsno CUDA device with virtual memory - skipped. I have not run--kv-growwith a model, so I do not know how this shows up in real use.I have not found whether the cause is in Strata's mapping/access sequence or in ROCm 7.14 on gfx1011. The permission-fault status suggests the remapped chunks are mapped without read/write access, but that is only my reading of the status bits.
Smallest steps or command that reproduce it
Other ctest results on this build (same machine, for completeness)
ctestper card, excludingple_parityandplatform_memory_test: 133 tests. Card 0: 5 failed; cards 1 and 2: 6 failed (the extra one isvmm_test). The others are the same on all three cards and look like test or build issues, not the card:native_hadamard_test,tq_cpu_parity,tq_cpu_parity_avx2printthis ggml has no trellis types (build with STRATA_GGML_DIR = the agention fork)and exit as failed rather than skipped.hip_prefill_mmq_parity: the Q2_0 products pass (rel_l2≈ 0.0005–0.0013), thenMMQ parity screen failed: basic_string: construction from null is not valid. From the source, the trellis loop seessupported(145)as true, while this ggml has no name for type 145, sostd::string tn = ggml_type_name(t)gets null. This is from reading the code; I did not debug it further.isa_guard_check:VIOLATION strata::kernels::cpu::tq_detail::tq_rows_avx512(...) (530 wide instructions, first vmovdqa32): wide-ISA code outside the wide-ISA translation unit.Skipped as expected for RDNA1 / this host: the WMMA, hipBLASLt, rocBLAS and fused prefill tests,
qsa_scores_gfx1100_parity,expert_cache_segmented_test,expert_multi_test.Logs
vmm_test, 3 runs per card (vmm.out)
ctest output of the failed tests, card 2 (excerpt of LastTest.log)
@github-actions[bot] commented on GitHub (Oct 20, 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
@Niko1221 commented on GitHub (Oct 21, 2026):
Thank you for the careful re-test, and for the table per card.
The three test problems you listed are fixed for 0.2.2, the next release (not out yet): the trellis tests are skipped (not failed) when the ggml has no trellis types,
hip_prefill_mmq_parityno longer crashes on the missing type name, andisa_guard_checkknows the trellis AVX-512 rows.The
vmm_testmemory fault on gfx1011 is not fixed. We have no card like yours to try it on. Your reading (the remapped chunks are mapped without read/write access) is the first thing we will check invmm.cpp. Since--kv-growis the only user, it should be off on this card. If you run it with--kv-growand a small model, please tell us whether it starts and what the log says.@andyelka-creator commented on GitHub (Oct 21, 2026):
Thanks. I can't run
--kv-growwith a model here. This box has 16 GB of RAM, and as I read DETAILS.md,--kv-growneeds every expert in RAM and is only on the Flash-Next path, so the engine would just print "--kv-grow is off". The other machine has MI50s (gfx906), wherevmm.cppis compiled out. So instead I checked your first suspect invmm_testitself, with a few switches added to a local copy of 0.2.0-beta (diff below). Each line is 3 runs on each of the 3 cards (9 runs), with nothing else on the GPUs.Access looks fine. The failing part is one
hipMemsetacross several chunks.hipMemSetAccessper chunk instead of once per runhipDeviceSynchronize()afterhipMemSetAccesshipMemSetAccessreturnshipSuccess, for[0,6),[0,2)(range b) and[4,7).a.base()/ 2 MiB), never in chunk 4, where the 6 MiB memset starts.Separate probes on a fresh range: reserve 3 chunks,
map_range(0, 3), nothing ever unmapped or moved.cudaMemsetover all 3 chunks (6 MiB)cudaMemcpyhost→device over the same 6 MiBcudaMemsetchunk by chunk (3 × 2 MiB)cudaMemsetstraddling the chunk 0/1 boundarySo remapping is not needed to get the fault. A single fill of 6 MiB over three separately created and mapped chunks faults (
__amd_rocclr_fillBufferAligned, kernel logPERMISSION_FAULTS: 0x5), while a copy over the same range and fills of one chunk each do not. In the original scenario, filling chunks 4, 5 and 6 one by one first passed in 7 of 9 runs, and the 6 MiB memset after it then passed too. The 2 runs that failed were both on card 0.My guess, not verified: this is in ROCclr's fill path for VMM ranges that span several physical allocations, not in
vmm.cpp's map/access sequence. If so, what matters for--kv-growis whether Strata's own kernels write across chunk boundaries correctly.vmm_testdoes not show that, and I have not tested it. A test that writes through the range with a plain kernel instead ofcudaMemsetwould tell. I can run it here if you add one.Same build as before: 0.2.0-beta
3d1fb480, 3× BC-160 gfx1011, HIP 7.14.60850 (TheRockgfx101X-dgpu), kernel 7.0.0-38. No GPU resets.Probe switches (diff against v0.2.0-beta)