[GH-ISSUE #461] Windows AMD (RX 7900 XTX / gfx1100): prefill GEMM crashes with hipErrorInvalidDeviceFunction #215

Closed
opened 2026-11-04 01:40:59 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @kopug on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/461

Summary

On Windows 11 with an AMD Radeon RX 7900 XTX (gfx1100), Strata 0.1.34 starts successfully, loads the IQ2_XS model, passes strata-device --selftest, and can generate responses for short prompts.

However, slightly larger prompts reproducibly crash the engine during prefill with:

rocBLAS error from hip error code: 'hipErrorInvalidDeviceFunction':98
prefill gemm: cublasGemmEx: cuBLAS status 6

The API then returns HTTP 503:

{
  "error": {
    "type": "server_error",
    "message": "the engine stopped unexpectedly (exit code 1); the next request restarts it"
  }
}

This does not appear to be specific to long-context / 32K prompts. I originally encountered it while testing a ~32K workload, but was able to reproduce the same crash with much shorter prompts.

Environment

  • OS: Windows 11 64-bit
  • Strata commit: 1678de333d0e0711bc414ad992b640e1a37dd814
  • Strata engine: 0.1.34
  • Backend: HIP
  • GPU: AMD Radeon RX 7900 XTX 24 GB
  • Architecture: gfx1100, wave32
  • CPU: AMD Ryzen 7 9800X3D
  • RAM: 64 GB DDR5
  • AMD display driver: 32.0.31041.1004
  • Driver date reported by Windows: 2026-08-17
  • ROCm libraries shipped with the Windows Strata engine: 10.2.0a20260930
  • Model: Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS
  • Context: 32768
  • KV: 8-bit
  • Vision: disabled

There is also an integrated AMD GPU in the system:

device 0: AMD Radeon(TM) Graphics
  arch gfx1036, 36.2 GiB, wave32
  cannot run: GPU 0 (...) is not an architecture this Strata engine was compiled for

device 1: AMD Radeon RX 7900 XTX
  arch gfx1100, 24.0 GiB, wave32

Strata setup correctly selects the RX 7900 XTX as HIP device 1.

Device self-test

I explicitly selected the RX 7900 XTX:

$env:HIP_VISIBLE_DEVICES = "1"
.\engine\strata-device.exe --selftest

Result:

device 0: AMD Radeon RX 7900 XTX
  HIP arch            gfx1100 wave32 (compiled for gfx1100,gfx1101,gfx1102,gfx1200,gfx1201,gfx1030)
  multiprocessors     48
  VRAM total / free   23.984 GiB (25753026560 B) / 23.839 GiB (25596395520 B)
  driver / runtime    70260201 / 70260201

memory plan  --max-context 20480
  KV + indexer keys   0.267387 GB
  recurrent state     0.000000 GB
  expert cache        5.675613 GB
  VRAM pool           5.943000 GB
  expert arena (DRAM) 0.000000 GB
  card free           23.839 GiB (25596395520 B)
  plan + KV vs free   FITS

selftest: arena 0.062 GiB (67108864 B), used 0.002 GiB (2097152 B) after two 1 MiB allocations
selftest: over-allocation refused as required
strata-device selftest OK

So basic HIP device detection and the Strata device self-test succeed.

Successful short inference

A normal short request succeeds:

strata serve: prompt 53 tokens = 0 reused + 53 read in 634 ms (83.6 tok/s), 47 generated in 775 ms (60.6 tok/s), drafts accepted 30 of 32, 1 checkpoints
strata serve: decode expert cache hit rate: 88.5% (19579 hits / 22118 lookups)

I also tested exact input-token counts using /v1/messages/count_tokens.

Independent short prompts succeeded at approximately 60-62 input tokens:

60 input tokens: OK
61 input tokens: OK
62 input tokens: OK

Reproduction

I generated independent prompts with different prefixes to avoid prefix-cache reuse.

Observed results:

actual input tokens 61 -> OK
actual input tokens 62 -> OK
actual input tokens 61 -> OK
actual input tokens 72 -> HTTP 503 / engine exit

The 72-token request causes the engine to terminate.

Earlier tests with larger prompts, including a ~32K workload, fail with the same error.

This suggests the issue is not limited to a full 32K context. It can happen during a relatively short prefill as well.

I did not continue narrowing the exact token boundary because the crash was already reproducible enough to report.

Engine log at failure

Immediately before the failure:

strata generate: GPU 0: AMD Radeon RX 7900 XTX (gfx1100)
strata generate: loaded 33.02 GiB at 5.86 GiB/s
strata generate: expert cache auto: 19.19 GiB free, 700 MiB reserved (+143 MiB for the draft head) -> 13053 slots
strata generate: expert cache 13696 slots, 18.36 GiB of VRAM
strata generate: session is up (engine 0.1.34)
strata generate: token graph hit path: 13696 resident experts, decided on the device
strata serve: prompt chunk auto: 8192 tokens
strata serve: the prompt path borrows 3342 CUDA0 cache slots (4.49 GiB)
strata serve: 477 MiB of VRAM free with everything loaded

rocBLAS error from hip error code: 'hipErrorInvalidDeviceFunction':98
prefill gemm: cublasGemmEx: cuBLAS status 6

The same two error lines appear consistently after the failing requests.

I did not see an out-of-memory error in the engine log.

Additional observation

The PCIe probe also reports values that appear implausibly high:

PCIe probe: 9038.2 GB/s host->device
PCIe probe: 10294.7 GB/s host->device
PCIe probe: 19416.7 GB/s host->device
PCIe probe: 18417.5 GB/s host->device
PCIe probe: 5598.2 GB/s host->device

I do not know whether this is related to the prefill failure, but I included it in case it is useful for debugging.

I searched the existing issues before filing this.

The closest one I found is #273:

  • RX 7900 XTX / gfx1100 / HIP
  • Linux
  • engine 0.1.29
  • failure in the verify kernel (unspecified launch failure)

This report is different:

  • Windows 11
  • engine 0.1.34
  • Windows ready-made HIP engine
  • model loading and strata-device --selftest succeed
  • short inference succeeds
  • failure occurs in prefill GEMM
  • error is hipErrorInvalidDeviceFunction

I also found #161, which has a somewhat similar high-level symptom where short prompts succeed and batched prefill fails, but that report is on NVIDIA/CUDA with a different cuBLAS status.

So I do not think this is a duplicate of either issue.

Expected behavior

Prefill should complete successfully on the RX 7900 XTX / gfx1100 rather than terminating the engine.

Actual behavior

The engine exits with:

rocBLAS error from hip error code: 'hipErrorInvalidDeviceFunction':98
prefill gemm: cublasGemmEx: cuBLAS status 6

and the API responds with HTTP 503.

I can provide the full strata-iq2_xs.log or run additional targeted diagnostics if useful.

Originally created by @kopug on GitHub (Oct 2, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/461 ## Summary On Windows 11 with an AMD Radeon RX 7900 XTX (gfx1100), Strata 0.1.34 starts successfully, loads the IQ2_XS model, passes `strata-device --selftest`, and can generate responses for short prompts. However, slightly larger prompts reproducibly crash the engine during prefill with: ```text rocBLAS error from hip error code: 'hipErrorInvalidDeviceFunction':98 prefill gemm: cublasGemmEx: cuBLAS status 6 ``` The API then returns HTTP 503: ```json { "error": { "type": "server_error", "message": "the engine stopped unexpectedly (exit code 1); the next request restarts it" } } ``` This does not appear to be specific to long-context / 32K prompts. I originally encountered it while testing a ~32K workload, but was able to reproduce the same crash with much shorter prompts. ## Environment - OS: Windows 11 64-bit - Strata commit: `1678de333d0e0711bc414ad992b640e1a37dd814` - Strata engine: `0.1.34` - Backend: HIP - GPU: AMD Radeon RX 7900 XTX 24 GB - Architecture: `gfx1100`, wave32 - CPU: AMD Ryzen 7 9800X3D - RAM: 64 GB DDR5 - AMD display driver: `32.0.31041.1004` - Driver date reported by Windows: `2026-08-17` - ROCm libraries shipped with the Windows Strata engine: `10.2.0a20260930` - Model: `Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS` - Context: `32768` - KV: 8-bit - Vision: disabled There is also an integrated AMD GPU in the system: ```text device 0: AMD Radeon(TM) Graphics arch gfx1036, 36.2 GiB, wave32 cannot run: GPU 0 (...) is not an architecture this Strata engine was compiled for device 1: AMD Radeon RX 7900 XTX arch gfx1100, 24.0 GiB, wave32 ``` Strata setup correctly selects the RX 7900 XTX as HIP device 1. ## Device self-test I explicitly selected the RX 7900 XTX: ```powershell $env:HIP_VISIBLE_DEVICES = "1" .\engine\strata-device.exe --selftest ``` Result: ```text device 0: AMD Radeon RX 7900 XTX HIP arch gfx1100 wave32 (compiled for gfx1100,gfx1101,gfx1102,gfx1200,gfx1201,gfx1030) multiprocessors 48 VRAM total / free 23.984 GiB (25753026560 B) / 23.839 GiB (25596395520 B) driver / runtime 70260201 / 70260201 memory plan --max-context 20480 KV + indexer keys 0.267387 GB recurrent state 0.000000 GB expert cache 5.675613 GB VRAM pool 5.943000 GB expert arena (DRAM) 0.000000 GB card free 23.839 GiB (25596395520 B) plan + KV vs free FITS selftest: arena 0.062 GiB (67108864 B), used 0.002 GiB (2097152 B) after two 1 MiB allocations selftest: over-allocation refused as required strata-device selftest OK ``` So basic HIP device detection and the Strata device self-test succeed. ## Successful short inference A normal short request succeeds: ```text strata serve: prompt 53 tokens = 0 reused + 53 read in 634 ms (83.6 tok/s), 47 generated in 775 ms (60.6 tok/s), drafts accepted 30 of 32, 1 checkpoints strata serve: decode expert cache hit rate: 88.5% (19579 hits / 22118 lookups) ``` I also tested exact input-token counts using `/v1/messages/count_tokens`. Independent short prompts succeeded at approximately 60-62 input tokens: ```text 60 input tokens: OK 61 input tokens: OK 62 input tokens: OK ``` ## Reproduction I generated independent prompts with different prefixes to avoid prefix-cache reuse. Observed results: ```text actual input tokens 61 -> OK actual input tokens 62 -> OK actual input tokens 61 -> OK actual input tokens 72 -> HTTP 503 / engine exit ``` The 72-token request causes the engine to terminate. Earlier tests with larger prompts, including a ~32K workload, fail with the same error. This suggests the issue is not limited to a full 32K context. It can happen during a relatively short prefill as well. I did not continue narrowing the exact token boundary because the crash was already reproducible enough to report. ## Engine log at failure Immediately before the failure: ```text strata generate: GPU 0: AMD Radeon RX 7900 XTX (gfx1100) strata generate: loaded 33.02 GiB at 5.86 GiB/s strata generate: expert cache auto: 19.19 GiB free, 700 MiB reserved (+143 MiB for the draft head) -> 13053 slots strata generate: expert cache 13696 slots, 18.36 GiB of VRAM strata generate: session is up (engine 0.1.34) strata generate: token graph hit path: 13696 resident experts, decided on the device strata serve: prompt chunk auto: 8192 tokens strata serve: the prompt path borrows 3342 CUDA0 cache slots (4.49 GiB) strata serve: 477 MiB of VRAM free with everything loaded rocBLAS error from hip error code: 'hipErrorInvalidDeviceFunction':98 prefill gemm: cublasGemmEx: cuBLAS status 6 ``` The same two error lines appear consistently after the failing requests. I did not see an out-of-memory error in the engine log. ## Additional observation The PCIe probe also reports values that appear implausibly high: ```text PCIe probe: 9038.2 GB/s host->device PCIe probe: 10294.7 GB/s host->device PCIe probe: 19416.7 GB/s host->device PCIe probe: 18417.5 GB/s host->device PCIe probe: 5598.2 GB/s host->device ``` I do not know whether this is related to the prefill failure, but I included it in case it is useful for debugging. ## Related issues checked I searched the existing issues before filing this. The closest one I found is #273: - RX 7900 XTX / gfx1100 / HIP - Linux - engine 0.1.29 - failure in the verify kernel (`unspecified launch failure`) This report is different: - Windows 11 - engine 0.1.34 - Windows ready-made HIP engine - model loading and `strata-device --selftest` succeed - short inference succeeds - failure occurs in prefill GEMM - error is `hipErrorInvalidDeviceFunction` I also found #161, which has a somewhat similar high-level symptom where short prompts succeed and batched prefill fails, but that report is on NVIDIA/CUDA with a different cuBLAS status. So I do not think this is a duplicate of either issue. ## Expected behavior Prefill should complete successfully on the RX 7900 XTX / gfx1100 rather than terminating the engine. ## Actual behavior The engine exits with: ```text rocBLAS error from hip error code: 'hipErrorInvalidDeviceFunction':98 prefill gemm: cublasGemmEx: cuBLAS status 6 ``` and the API responds with HTTP 503. I can provide the full `strata-iq2_xs.log` or run additional targeted diagnostics if useful.
Author
Owner

@Niko1221 commented on GitHub (Oct 2, 2026):

Thanks for the detailed log. This is very likely the same cause as #468. Windows finds an AMD driver's own amdhip64_7.dll in System32 before the zip's engine\rocm\bin (which is only on PATH), so the bundled rocBLAS runs on your driver's HIP runtime. The small GEMMs work, and the larger shapes that use rocBLAS's packed kernels fail with hipErrorInvalidDeviceFunction. The next release puts the bundled runtime next to strata.exe.

To try it now, from the Strata folder:

copy engine\rocm\bin\amdhip64_7.dll engine\
copy engine\rocm\bin\amd_comgr.dll engine\

then send the 72-token prompt again. If it still fails, please post:

  • (Get-Item C:\Windows\System32\amdhip64_7.dll).VersionInfo.FileVersion (PowerShell);
  • while the engine runs: Get-Process strata | % Modules | ? ModuleName -like 'amdhip*' | select FileName;
  • the end of the log with "AMD_LOG_LEVEL": "3" in the config's env.

Your driver (32.0.31041) is also fairly old for ROCm 10.2, so a current AMD Software is worth a try too.

<!-- gh-comment-id:5947588809 --> @Niko1221 commented on GitHub (Oct 2, 2026): Thanks for the detailed log. This is very likely the same cause as #468. Windows finds an AMD driver's own `amdhip64_7.dll` in **System32** before the zip's `engine\rocm\bin` (which is only on PATH), so the bundled rocBLAS runs on your driver's HIP runtime. The small GEMMs work, and the larger shapes that use rocBLAS's packed kernels fail with `hipErrorInvalidDeviceFunction`. The next release puts the bundled runtime next to `strata.exe`. To try it now, from the Strata folder: ``` copy engine\rocm\bin\amdhip64_7.dll engine\ copy engine\rocm\bin\amd_comgr.dll engine\ ``` then send the 72-token prompt again. If it still fails, please post: - `(Get-Item C:\Windows\System32\amdhip64_7.dll).VersionInfo.FileVersion` (PowerShell); - while the engine runs: `Get-Process strata | % Modules | ? ModuleName -like 'amdhip*' | select FileName`; - the end of the log with `"AMD_LOG_LEVEL": "3"` in the config's `env`. Your driver (32.0.31041) is also fairly old for ROCm 10.2, so a current AMD Software is worth a try too.
Author
Owner

@kopug commented on GitHub (Oct 2, 2026):

Thanks, that fixed it.

After copying:

engine\rocm\bin\amdhip64_7.dll -> engine\
engine\rocm\bin\amd_comgr.dll -> engine\
<!-- gh-comment-id:5948300144 --> @kopug commented on GitHub (Oct 2, 2026): Thanks, that fixed it. After copying: ```text engine\rocm\bin\amdhip64_7.dll -> engine\ engine\rocm\bin\amd_comgr.dll -> engine\
Author
Owner

@Niko1221 commented on GitHub (Oct 2, 2026):

0.1.35 puts the bundled HIP runtime next to strata.exe, so a driver's System32 copy is no longer picked up. The engine log now names the runtime it loaded (strata generate: HIP runtime ...). Run START-HERE.bat (Linux: ./setup.sh) once to update. If the GEMM error is still there with the bundled runtime, please reopen with that line and the AMD_LOG_LEVEL=3 output, since then your driver version is the next suspect.

<!-- gh-comment-id:5948758840 --> @Niko1221 commented on GitHub (Oct 2, 2026): [0.1.35](https://github.com/Niko1221/Strata/releases/tag/v0.1.35) puts the bundled HIP runtime next to `strata.exe`, so a driver's System32 copy is no longer picked up. The engine log now names the runtime it loaded (`strata generate: HIP runtime ...`). Run `START-HERE.bat` (Linux: `./setup.sh`) once to update. If the GEMM error is still there with the bundled runtime, please reopen with that line and the `AMD_LOG_LEVEL=3` output, since then your driver version is the next suspect.
Author
Owner

@maraa081 commented on GitHub (Oct 7, 2026):

Follow-up: still on the System32 runtime on gfx1101 — and a self-built engine behaves identically

Building on your reply. Everything below is reproduced on AMD RX 7800 XT (gfx1101), Windows 11,
driver 32.0.31041.1004, engine 0.1.40.

1. The bundled amdhip64_7.dll cannot load next to strata.exe — rocm_kpack.dll is not shipped

strata.exe statically imports amdhip64_7.dll (first entry in its import table), then hipblas.dll,
libhipblaslt.dll, MSVCP140.dll, VCRUNTIME140.dll, VCRUNTIME140_1.dll.

The bundled amdhip64_7.dll imports rocm_kpack.dll (plus SETUPAPI/KERNEL32/USER32/GDI32/ADVAPI32),
and rocm_kpack.dll imports MSVCP140.dll, VCRUNTIME140.dll, VCRUNTIME140_1.dll — all of which
live in engine\rocm\bin, never next to strata.exe. Setup copies only amdhip64_7.dll and
amd_comgr.dll there (HIP_RUNTIME_DLLS), so the chain is incomplete.

Measured with LoadLibraryW("D:\Strata\engine\amdhip64_7.dll"), one fresh process per row:

current directory at load time rocm_kpack.dll resolvable result
D:\Strata\engine yes (same directory) OK
C:\ no ECHEC, GetLastError=126 (ERROR_MOD_NOT_FOUND)

2. A self-built engine is not different

Built here with tools\hip\build_windows.bat (VS 2022 Build Tools, ROCm 10.2.0a20260930 from the
TheRock wheels, gfx1101 in the arch list; build and packaging finished cleanly) and installed over the
ready-made one, it prints the same line and fails the same way:

strata generate: HIP runtime C:\WINDOWS\SYSTEM32\amdhip64_7.dll
rocBLAS error from hip error code: 'hipErrorInvalidDeviceFunction':98
prefill gemm: cublasGemmEx: cuBLAS status 6

So this is not specific to the prebuilt zip.

3. A delayed import (/DELAYLOAD) does not fix it either

Following your reply, the engine was patched and rebuilt here:

  • LINKER:/DELAYLOAD:amdhip64_7.dll on the strata and strata-device targets, plus delayimp;
  • a __pfnDliNotifyHook2 hook (src/platform/hip_runtime_win.cpp) that, on dliNotePreLoadLibrary
    for amdhip64_7.dll, calls LoadLibraryExA(<exe dir>\amdhip64_7.dll, NULL, LOAD_WITH_ALTERED_SEARCH_PATH).

The build succeeded and the patched engine is installed — it still binds the driver's copy. The
likely reason is (1): the full-path load fails because rocm_kpack.dll is not beside the exe, so the
delay-load helper falls back to the normal search and gets System32 again. Copying rocm_kpack.dll,
msvcp140.dll, vcruntime140.dll, vcruntime140_1.dll and origami.dll next to the exe, with the
patched engine, did not change it either.

Also ruled out here: STRATA_DENSE_MMQ=1 (takes effect, still crashes), --prefill 512 (accepted,
same crash), lib_dirs/PATH order, clean restarts, no AMD entry in KnownDLLs,
strata-device --list-devices and --selftest both pass.

Net result: on this card and driver, every route tried ends on the System32 runtime, and any
sizeable prefill kills the engine (short prompts answer fine — 43.9 tok/s measured).

Still available: a working HIP build environment now exists on this machine, so any patch can be
built and tested here in ~10 minutes. Happy to run experiments, take AMD_LOG_LEVEL=3 traces, or try
a manifest / dot-local redirection if you want to see whether the loader can be steered at all.

Second, separate issue: the low-RAM resident mode never fits — available commit ~2.3-3.5 GiB vs the
~15.7 GiB complement (page file 6.5 GB, system-managed). Falls back to --mmap-experts;
files 102912.8 MB read after four short requests.

<!-- gh-comment-id:6038761181 --> @maraa081 commented on GitHub (Oct 7, 2026): **Follow-up: still on the System32 runtime on gfx1101 — and a self-built engine behaves identically** Building on your reply. Everything below is reproduced on AMD RX 7800 XT (gfx1101), Windows 11, driver 32.0.31041.1004, engine 0.1.40. **1. The bundled `amdhip64_7.dll` cannot load next to `strata.exe` — `rocm_kpack.dll` is not shipped** `strata.exe` statically imports `amdhip64_7.dll` (first entry in its import table), then `hipblas.dll`, `libhipblaslt.dll`, `MSVCP140.dll`, `VCRUNTIME140.dll`, `VCRUNTIME140_1.dll`. The bundled `amdhip64_7.dll` imports `rocm_kpack.dll` (plus SETUPAPI/KERNEL32/USER32/GDI32/ADVAPI32), and `rocm_kpack.dll` imports `MSVCP140.dll`, `VCRUNTIME140.dll`, `VCRUNTIME140_1.dll` — all of which live in `engine\rocm\bin`, never next to `strata.exe`. Setup copies only `amdhip64_7.dll` and `amd_comgr.dll` there (`HIP_RUNTIME_DLLS`), so the chain is incomplete. Measured with `LoadLibraryW("D:\Strata\engine\amdhip64_7.dll")`, one fresh process per row: | current directory at load time | `rocm_kpack.dll` resolvable | result | | --- | --- | --- | | `D:\Strata\engine` | yes (same directory) | OK | | `C:\` | no | ECHEC, GetLastError=126 (ERROR_MOD_NOT_FOUND) | **2. A self-built engine is not different** Built here with `tools\hip\build_windows.bat` (VS 2022 Build Tools, ROCm 10.2.0a20260930 from the TheRock wheels, gfx1101 in the arch list; build and packaging finished cleanly) and installed over the ready-made one, it prints the same line and fails the same way: ``` strata generate: HIP runtime C:\WINDOWS\SYSTEM32\amdhip64_7.dll rocBLAS error from hip error code: 'hipErrorInvalidDeviceFunction':98 prefill gemm: cublasGemmEx: cuBLAS status 6 ``` So this is not specific to the prebuilt zip. **3. A delayed import (`/DELAYLOAD`) does not fix it either** Following your reply, the engine was patched and rebuilt here: - `LINKER:/DELAYLOAD:amdhip64_7.dll` on the `strata` and `strata-device` targets, plus `delayimp`; - a `__pfnDliNotifyHook2` hook (`src/platform/hip_runtime_win.cpp`) that, on `dliNotePreLoadLibrary` for `amdhip64_7.dll`, calls `LoadLibraryExA(<exe dir>\amdhip64_7.dll, NULL, LOAD_WITH_ALTERED_SEARCH_PATH)`. The build succeeded and the patched engine is installed — it **still** binds the driver's copy. The likely reason is (1): the full-path load fails because `rocm_kpack.dll` is not beside the exe, so the delay-load helper falls back to the normal search and gets System32 again. Copying `rocm_kpack.dll`, `msvcp140.dll`, `vcruntime140.dll`, `vcruntime140_1.dll` and `origami.dll` next to the exe, with the patched engine, did not change it either. **Also ruled out here**: `STRATA_DENSE_MMQ=1` (takes effect, still crashes), `--prefill 512` (accepted, same crash), `lib_dirs`/PATH order, clean restarts, no AMD entry in `KnownDLLs`, `strata-device --list-devices` and `--selftest` both pass. **Net result**: on this card and driver, every route tried ends on the System32 runtime, and any sizeable prefill kills the engine (short prompts answer fine — 43.9 tok/s measured). **Still available**: a working HIP build environment now exists on this machine, so any patch can be built and tested here in ~10 minutes. Happy to run experiments, take `AMD_LOG_LEVEL=3` traces, or try a manifest / dot-local redirection if you want to see whether the loader can be steered at all. **Second, separate issue**: the low-RAM resident mode never fits — available commit ~2.3-3.5 GiB vs the ~15.7 GiB complement (page file 6.5 GB, system-managed). Falls back to `--mmap-experts`; `files 102912.8 MB read` after four short requests.
Author
Owner

@Niko1221 commented on GitHub (Oct 7, 2026):

Thank you, this is an excellent analysis and it was exactly the missing piece. You are right: amdhip64_7.dll imports rocm_kpack.dll, which imports the MSVC runtime, and setup copied only amdhip64_7.dll and amd_comgr.dll next to strata.exe. A full-path load of the bundled runtime then fails with error 126 and Windows falls back to System32. That also explains why your delay-load hook still ended on System32.

What 0.1.40.3 changes:

  • setup (and the release packaging) now copies the whole dependency closure of those two DLLs next to the exe, computed from the PE import tables of the files in the zip rather than from a list of names. On the 0.1.40.2 HIP zip that is amdhip64_7.dll, amd_comgr.dll, rocm_kpack.dll, msvcp140.dll, vcruntime140.dll, vcruntime140_1.dll. hipblas.dll, rocblas.dll and the rest stay in rocm\bin. Running START-HERE.bat on an existing install adds the missing ones.
  • if the HIP runtime the engine ends up using is not the one beside it, the engine now also tries to load the bundled one on its own and prints the result and GetLastError (126 means a dependency is missing), so a log shows the reason.

Please be aware that we have no Windows AMD card, so none of this was run on AMD hardware: the closure was checked against the real zip with a second PE parser, the copy logic with a fake engine folder, and the engine change is diagnostic only.

Would you test the 0.1.40.3 HIP zip and paste the new strata generate: HIP runtime ... line (it should name the engine's own folder), and say whether the large prompt now works? If it still says System32, please also paste the new line that begins the bundled runtime beside the engine. Your offer to run experiments is very welcome. We will look at the resident-mode commit problem separately.

<!-- gh-comment-id:6043789864 --> @Niko1221 commented on GitHub (Oct 7, 2026): Thank you, this is an excellent analysis and it was exactly the missing piece. You are right: `amdhip64_7.dll` imports `rocm_kpack.dll`, which imports the MSVC runtime, and setup copied only `amdhip64_7.dll` and `amd_comgr.dll` next to `strata.exe`. A full-path load of the bundled runtime then fails with error 126 and Windows falls back to System32. That also explains why your delay-load hook still ended on System32. What 0.1.40.3 changes: - setup (and the release packaging) now copies the whole dependency closure of those two DLLs next to the exe, computed from the PE import tables of the files in the zip rather than from a list of names. On the 0.1.40.2 HIP zip that is `amdhip64_7.dll`, `amd_comgr.dll`, `rocm_kpack.dll`, `msvcp140.dll`, `vcruntime140.dll`, `vcruntime140_1.dll`. `hipblas.dll`, `rocblas.dll` and the rest stay in `rocm\bin`. Running START-HERE.bat on an existing install adds the missing ones. - if the HIP runtime the engine ends up using is not the one beside it, the engine now also tries to load the bundled one on its own and prints the result and `GetLastError` (126 means a dependency is missing), so a log shows the reason. Please be aware that we have no Windows AMD card, so none of this was run on AMD hardware: the closure was checked against the real zip with a second PE parser, the copy logic with a fake engine folder, and the engine change is diagnostic only. Would you test the 0.1.40.3 HIP zip and paste the new `strata generate: HIP runtime ...` line (it should name the engine's own folder), and say whether the large prompt now works? If it still says System32, please also paste the new line that begins `the bundled runtime beside the engine`. Your offer to run experiments is very welcome. We will look at the resident-mode commit problem separately.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#215
No description provided.