mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3982] [Engine] WSL2 + AMD RX 9060 XT (gfx1200): bundled HIP engine finds no GPU (hipErrorNoDevice) #1712
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#1712
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 @iNaD on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3982
Disclaimer: This issue was written by Claude Sonnet, I used it to debug the WSL setup and got it working this way.
Environment
.wslconfig), GPU: AMD Radeon RX 9060 XT 16 GB (gfx1200)/opt/rocm-7.2.0, WSL runtime fromhsa-runtime-rocr4wsl-amdgpu 25.30.13(alsohsa-rocr-dev 1.18.0.70200installed)0.1.48-linux-x86_64-hip-rx9070, model coder IQ1_M (~55 GB on disk)Problem
rocminfoworks in WSL and lists the GPU (gfx1200).strata doctorshows everythingok, exceptgpu_driver_probe: unverified. Starting the model fails with:With
AMD_LOG_LEVEL=3the engine loads its ownlibamdhip64.so.7and returnshipGetDeviceCount: Returned hipErrorNoDevice. The launcher then reports "no graphics card that Strata can use was found".Cause (my analysis, not confirmed by the maintainers)
The engine directory contains its own
libhsa-runtime64.so.1. This is a regular Linux runtime that talks to/dev/kfd, which does not exist in WSL (WSL uses/dev/dxg). The system'slibhsa-runtime64.so.1fromhsa-runtime-rocr4wsl-amdgpuis the one that finds the GPU.What I tried
libhsa-runtime64.so.1with a symlink to/opt/rocm-7.2.0/lib/libhsa-runtime64.so.1: the engine then sees the GPU (Gfx Major/Minor/Stepping: 12/0/0,hipGetDeviceCount: Returned hipSuccess), but the launcher refuses to start because the engine is flagged as manipulated.HSA_ENABLE_DXG_DETECTION=1: fails,LoadLib(librocdxg.so) failed, thenundefined symbol: hsaKmtOpenKFDand a segfault.librocdxgis not installed, and therocr4wslruntime did not need it without this variable.Working setup
Building the engine from source against the system ROCm, following
docs/AMD_HIP.md(manualcmakebuild, nosetup.sh, because KFD detection does not work in WSL):The build succeeds (only
-Wunused-resultwarnings forhipFree). The resulting binary links against the system HSA/HIP libraries, detects the GPU as gfx1200 (RDNA4, gfx12 defaults are applied) and runs viapython -m serve.server --engine strata --config ... --port 8080withexeset tobuild-hip/strata.Arguments that work:
--serve --pack ... --native ... --ple-gguf ... --mmap-experts --expert-profile ... --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp ... --max-context 65536 --kv int8 --vram-reserve-mib 2048Notes:
--mmap-expertsthe start filled the 22 GB of WSL RAM, CPU stayed at 100% and WSL froze completely (not evenwsl --shutdownworked). With it, RAM use stays at ~2 GB (the rest is page cache).--pcie-frac 0 --adapt-every 0from the AMD_HIP.md example. Removing both raised the expert cache hit rate from ~38% to ~80% on repeated prompts, with similar speed.Requests / suggestions
/dev/dxg) in the GPU detection andstrata doctor, and say so instead of reporting "no graphics card".libhsa-runtime64, or document that it cannot work there.AMD_HIP.md, including that--mmap-expertsis needed to avoid the RAM exhaustion above.--pcie-fracvalue for WSL would help.I can provide full logs if useful.
@github-actions[bot] commented on GitHub (Oct 24, 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
@github-actions[bot] commented on GitHub (Oct 24, 2026):
Thanks, this follows the format now.
@Retina-sys commented on GitHub (Oct 24, 2026):
imho strata is way too complicated to properly setup for what it is. similar issue I've got but for the windows hip.exe package.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.