llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Windows ROCm 10.0 zips are missing ROCm libraries (rocBLAS, hipBLASLt, hipRTC, ...) → "no ROCm-capable device is detected", silent CPU fallback

Open shensedejiyi opened this issue 1 week ago • 1 comments

Summary

The llama-b12679-bin-win-rocm-10.0-x64.zip asset does not bundle the ROCm library dependencies that previous Windows ROCm zips shipped. The ggml HIP backend fails during initialization and llama-server silently falls back to CPU-only, reporting a misleading error:

ggml_cuda_init: failed to initialize ROCm: no ROCm-capable device is detected

The server then answers requests normally (CPU speed), so the regression is easy to miss — our first symptom was a 20x prefill slowdown.

Environment

  • Windows 11, AMD Radeon RX 6750 GRE 12GB (RDNA2, gfx1031), Adrenalin driver
  • Broken: llama-b12679-bin-win-rocm-10.0-x64.zip (2026-11-24 nightly)
  • Last known good: b11228-era zip (Sept 2026), same GPU, no env overrides, GPU works
  • [B12716 STATUS — verified 2026-11-25: the latest nightly llama-b12716-bin-win-rocm-10.0-x64.zip (285,287,603 bytes, full download checked) still contains ZERO rocblas/ or hipblaslt/ entries and none of the DLLs listed below — the packaging defect persists in the newest build.]

What's missing

Comparing b12679 vs the older zip (b11228), b12679 lacks:

  • rocblas.dll and the entire rocblas/ directory (994 Tensile codeobject libraries)
  • libhipblaslt.dll + hipblaslt/
  • hipblas.dll, hipdnn_backend.dll, hipfft.dll, hipfftw.dll, hiprand.dll, hipsolver.dll, hipsparse.dll, rocrand.dll, rocsolver.dll, rocsparse.dll, rocfft.dll
  • runtime compiler stack: hiprtc07013.dll, hiprtc-builtins07013.dll, amd_comgr0713.dll
  • MIOpen.dll, fftw3.dll, fftw3f.dll, rocm-openblas*.dll, OpenCL runtime DLLs

The HIP runtime itself (amdhip64_7.dll, 10.0.3581) is present, but the HIP backend initializes its kernels via hipRTC and uses rocBLAS/hipBLASLt at init — with the runtime-compiler/BLAS DLLs missing, backend init dies and surfaces as "no ROCm-capable device is detected", which reads like a GPU-support problem but is not one.

Proof it's packaging, not GPU support

  1. Fresh b12679 zip, unmodified: backend init fails → CPU-only. GPU process dedicated VRAM: 0 MB (verified via GPU Process Memory(*)\Dedicated Usage perf counter).
  2. Copying the missing DLLs + rocblas/ + hipblaslt/ from the older working zip into the new package directory (nothing else changed, no HSA_OVERRIDE_GFX_VERSION): GPU detected, ~386 MB VRAM on a 300M model, embedding inference succeeds end-to-end.
  3. After the fix, full 12B model: prefill of ~3600 tokens in ~4.1 s (GPU), vs ~79 s in the CPU-fallback state.
  4. Control tests with the old working zip: setting a bogus HSA_OVERRIDE_GFX_VERSION=99.9.9 leaves the GPU running normally — device enumeration on Windows works fine with this GPU; the failure is purely the missing dependencies.

Request

Either bundle the ROCm library dependencies in the win-rocm-10.0 zips again, or ship a companion runtime asset like the CUDA cudart-llama-bin zips. Ideally also make backend-init failures loud (the current error string points users toward GPU-support/driver debugging when the real cause is missing libraries).

Happy to test a fixed build.

shensedejiyi avatar Nov 25 '26 13:11 shensedejiyi

Confirming this on a different GPU: it also hits an RX 9070 XT (gfx1201) on Windows, with build b12818 (a38695013).

What's in the zip: my llama-b12818-bin-win-rocm-10.0-x64 zip has 56 entries. From the list in this issue, only amd_comgr.dll is there. There is no rocblas.dll or rocblas/, no libhipblaslt.dll or hipblaslt/, no hipblas.dll, no hipRTC and no MIOpen. ggml-hip.dll itself imports hipblas.dll (checked with llvm-readobj --coff-imports), so that import can't be satisfied from the extracted folder.

What happens (zip extracted as-is, same build, same model, Qwen2.5-1.5B Q4_K_M, llama-bench -ngl 99):

  • PATH as in a fresh login session (registry Machine+User PATH, no ROCm SDK on it): llama-cli --list-devices prints Available devices: with nothing under it, llama-bench only loads the RPC and CPU backends, and it runs on the CPU: pp512 1188 t/s, tg128 62 t/s. Dedicated VRAM stays at the desktop baseline (1189 MiB). There is no error, just a silent CPU run
  • Loading ggml-hip.dll directly fails with "Could not find module ... (or one of its dependencies)"
  • Same folder, same command, with the ROCm SDK DLL directories (the ones holding hipblas.dll, libhipblaslt.dll, rocblas.dll) appended to PATH: the device is found (ROCm0: AMD Radeon RX 9070 XT), pp512 17364 t/s, tg128 282 t/s, peak dedicated VRAM 2814 MiB. A process module listing shows hipblas.dll, libhipblaslt.dll and rocblas.dll being picked up from there

So on this machine the same thing is going on that this issue describes: the backend only works if those libraries happen to be reachable from somewhere else, and otherwise llama.cpp quietly runs on the CPU. I'd add that a missing DLL looks the same as "no GPU" in the output, so a one-line warning when ggml-hip.dll fails to load would have saved a lot of debugging.

I haven't tried the b12679/b12716 zips or a non-gfx1201 card.

coryord15-ship-it avatar Nov 28 '26 04:11 coryord15-ship-it