mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3895] [Docs] AMD_HIP: why STRATA_SH_STREAM goes both ways, and leave it off on Windows #4819
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#4819
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/3895
Author: @Vop3p
Created: 10/24/2026
Status: 🔄 Open
Base:
main← Head:docs-sh-stream-why📝 Commits (1)
e326847docs(AMD_HIP): why STRATA_SH_STREAM goes both ways, and leave it off on Windows📊 Changes
1 file changed (+19 additions, -0 deletions)
View changed files
📝
docs/AMD_HIP.md(+19 -0)📄 Description
Problem and result
docs/AMD_HIP.mdsaysSTRATA_SH_STREAM"goes both ways on different PCs" and leaves the choice to--calibrate, without saying why. Two new paragraphs say why, and add a Windows observation: on Windows 11 + RX 6900 XT the fork together with KV streaming faulted the engine on its first request.Related discussion
#816 (RX 6800, Windows, fork on slower), #1272 (2x RX 6900 XT, Linux, fork on faster),
7fd67dd(the HIP default and its R9700 numbers), #1992 (calibration of the switch). Docs only; no default or code changes.Approach
STRATA_SH_FORK_LATE,src/core/verify.cpp) and runs while the GPU waits for the CPU pool. On a 16 GB card that wait is about half a verify window:STRATA_DECODE_TIMING=1on one RX 6900 XT under Linux (4,859 slots) gave GPU-reach wait 20.7 of 39.1 ms. With every expert resident there is nothing to hide and the fork is two cross-stream event dependencies per layer (7fd67dd: R9700,--resident-experts, 43.4 vs 62.9 tok/s).rdna2package (engine 0.1.48) unchanged, Qwen3.8-Flash-Next IQ3_S, 64K context,--kv int8 --kv-resident 32768 --vram-reserve-mib 1536. WithSTRATA_SH_STREAM=1the first request failed with "verify: unspecified launch failure" (in other starts first reported by "mtp draft step: unspecified launch failure"; process exit code 0xC0000409). With the fork off, or without--kv-resident, the same setup answered normally.Validation
Passed:
STRATA_HIP_PROMPT_F16,STRATA_HC_PERSIST,STRATA_HIP_ADAPT_KERNEL_COPY,STRATA_PREFILL_CPU_SHARE=auto,STRATA_PIPED_CONCURRENT,STRATA_PREFILL_STREAM_MIN=2048,STRATA_IO_THREADS=128and a rocBLAS table, removing one at a time, three short requests each. All set: fault. Each ofHC_PERSIST,ADAPT_KERNEL_COPY,PREFILL_STREAM_MIN, the table removed: fault.STRATA_SH_STREAMremoved: 3/3 answered. All removed: 3/3 answered.STRATA_SH_STREAM=1without--kv-residenton the same PC: standard benchmark complete, sanity 12/12 (several runs).STRATA_SH_STREAM=1and--kv-resident 32768in production since 0.1.40: no such fault.Failed:
Not run:
AMD_SERIALIZE_KERNEL=3not tried).PROMPT_F16,CPU_SHARE,PIPED_CONCURRENT,IO_THREADS) each followed a fault and the engine did not come up within the probe's timeout, so they say nothing either way.Limits
One Windows PC, one card. The Linux timing number is one request on one card.
Developed with an AI coding assistant; every number above was measured on the machines described.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.