576 Commits
Author SHA1 Message Date
Ken VanDine 978b8d13c8 Merge pull request #16 from lemonade-sdk/fix/validate-release-artifacts
ci: fail release if any expected artifacts are missing
2026-07-02 16:29:44 +02:00
Ken VanDineandClaude Sonnet 5 f0883c99a7 ci: prune stale release assets from families dropped in the current run
Same fix as lemonade-sdk/stable-diffusion.cpp#14: the release is reused
across runs against the same tag (idempotent create-or-get). If a
family (e.g. rocm) was complete and published in an earlier run but the
current run finds it incomplete and drops it locally, its assets from
that earlier run were never removed — the release would keep looking
complete for a family this run couldn't actually reproduce.

The upload step now reconciles existing release assets against the
current ./release file set: anything not fully uploaded (a broken
partial upload, as before) or not present in this run's file set (stale
leftovers from a dropped family) gets deleted before uploading.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-07-02 10:01:54 -04:00
Ken VanDineandClaude Sonnet 5 87f8d0fe0d ci: guard the tar.gz move loop against an unmatched glob
The CUDA .tar.xz and .7z move loops already skip when their glob
doesn't match any files; the tar.gz loop (ROCm/OpenVINO) was missing
the same guard. If both tar.gz producers are absent, the loop would
try to mv the literal artifact/*.tar.gz and fail before the family
completeness check could run and drop ROCm/OpenVINO while still
publishing CUDA/Windows CPU.

Addresses review feedback on lemonade-sdk/llama.cpp#16.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-07-02 09:56:34 -04:00
Ken VanDineandClaude Sonnet 5 e8991e55c9 ci: run release job even when a build job fails, and don't let a missing
Windows CPU artifact block unrelated families

Two gaps that let the per-family completeness logic get bypassed
entirely:

- The release job had no always(), so GitHub Actions' default
  skip-if-a-needed-job-failed behavior meant a single failed build job
  (e.g. one CUDA sm_* matrix leg) could skip the release job outright,
  before the family checks ever ran.
- The Windows CPU-backend merge step still hard-exited the whole job if
  the CPU zip was missing, which — since it runs before the Ubuntu/CUDA
  renaming loops — blocked Ubuntu ROCm/OpenVINO/CUDA from publishing
  too, for a reason that had nothing to do with them.

Now the release job always runs when the workflow is a schedule/dispatch
run, and a missing Windows CPU artifact just skips moving the Windows
zip-based artifacts (which structurally require it merged in) into
release/, leaving Ubuntu/CUDA .7z artifacts unaffected. The existing
completeness check then correctly sees the missing cpu/rocm files and
drops those families.

Addresses review feedback on lemonade-sdk/llama.cpp#16.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-07-02 09:36:34 -04:00
Ken VanDineandClaude Sonnet 5 33312dd54b ci: drop the whole backend family when any of its artifacts are missing
Rather than publishing whichever individual files happened to build, a
family (cuda, rocm, openvino, cpu) is now all-or-nothing: if any required
artifact in a family is missing, every artifact for that family is
dropped from the release. This guarantees that if a family is present in
a release at all, it's a complete, internally-consistent set across every
platform/variant — e.g. CUDA is never split across sm_* or platforms
between two different backend versions. Other families are unaffected by
a gap in one.

Addresses review feedback on lemonade-sdk/llama.cpp#16.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-07-02 09:05:06 -04:00
Ken VanDineandClaude Sonnet 5 34e6acd331 ci: guard against creating an empty release and clarify the failure message
Fail before touching the GitHub release if ./release ends up with zero
artifacts, instead of relying on per-family checks alone. Also carry the
per-family missing summary into the final failure message so it's
self-contained instead of pointing back at an earlier step's log.

Addresses review feedback on lemonade-sdk/llama.cpp#16.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-07-02 08:53:41 -04:00
Ken VanDineandClaude Sonnet 5 73fe29e160 ci: decouple per-family artifact checks so one gap doesn't block others
A missing artifact in one backend family (e.g. a single failed CUDA
sm_* build) no longer blocks publishing the artifacts from families
that did build successfully. Each family (cuda, rocm, openvino, cpu)
is checked independently; the release is still created and available
artifacts are still uploaded, but the job fails afterward so the gap
is still surfaced.

Addresses review feedback on lemonade-sdk/llama.cpp#16.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-07-01 20:21:21 -04:00
Ken VanDine ea05f50992 Merge pull request #18 from lemonade-sdk/kenvandine/cuda_sm_121
ci: bump CUDA toolkit 12.8 → 12.9 for sm_121 support
2026-06-11 23:22:30 +02:00
Ken VanDineandCopilot Autofix powered by AI 04a62224ca Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-06-11 17:08:28 -04:00
copilot-swe-agent[bot] dad4fbce4e ci: fix libomp140 search - use vswhere, if/else for arch suffix, and accurate error message 2026-06-11 20:45:32 +00:00
Ken VanDineandCopilot 88ab6a7d5c ci: add CUDA sm_121 support for NVIDIA GB10
Add sm_121 to all CUDA architecture build matrices to support
the NVIDIA GB10 (Grace Blackwell) SoC.

Co-authored-by: Copilot <[email protected]>
2026-06-11 16:36:12 -04:00
Ken VanDineandCopilot a636be808b ci: add CUDA sm_121 support for NVIDIA GB10
Add sm_121 to all CUDA architecture build matrices to support
the NVIDIA GB10 (Grace Blackwell) SoC.

Co-authored-by: Copilot <[email protected]>
2026-06-11 15:17:24 -04:00
Ken VanDineandCopilot 7865317a80 ci: fail release if any expected artifacts are missing
The previous check only verified that at least one artifact existed.
This meant a release could be published with missing CUDA builds
(as happened with b9549, which was missing all Windows CUDA artifacts
and ubuntu-cuda-sm_90-x64).

The updated check explicitly enumerates every expected artifact:
- All 7 CUDA SM variants (sm_75/80/86/89/90/100/120) for each of:
  ubuntu x64, ubuntu arm64, windows x64
- ubuntu ROCm, ubuntu OpenVINO, Windows ROCm, Windows CPU

If any are absent the step fails before the release is created,
so a partially-populated release can never be tagged.

Co-authored-by: Copilot <[email protected]>
2026-06-09 16:56:48 -04:00
Ken VanDineandClaude Sonnet 4.6 135ecd5885 ci: skip libtbbbind when bundling TBB — requires libhwloc
libtbbbind is TBB's optional CPU topology library; it depends on
libhwloc which is not available on the CI runner or target systems.
Only bundle libtbb and libtbbmalloc, which are sufficient for llama.cpp.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-06-03 22:23:17 -04:00
Ken VanDineandClaude Sonnet 4.6 4db766987f ci: remove plugins.xml copy — not present in OpenVINO 2026.0
OpenVINO 2026.0 no longer ships plugins.xml in runtime/lib/intel64/;
plugin discovery is handled automatically by the runtime library.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-06-03 22:18:08 -04:00
Ken VanDineandClaude Sonnet 4.6 9688c9755e ci: switch OpenVINO job to ubuntu-22.04 to match other build jobs
Use the ubuntu22 toolkit variant (which exists for 2026.0) and run on
ubuntu-22.04 consistent with all other jobs in this workflow. Add an
optional ubuntu_version input to the linux-setup-openvino action so
callers can select the toolkit variant (default: ubuntu22).

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-06-03 22:03:55 -04:00
Ken VanDineandClaude Sonnet 4.6 7f921f0771 ci: fix OpenVINO toolkit version and add dependency install step
- Set OPENVINO_VERSION_FULL to the correct 2026.0.0.20965.c6d6a13a886
  (sourced from ggml-org/llama.cpp build-openvino.yml)
- Install libtbb12, OpenCL headers, and ninja-build to match ggml-org's
  build environment
- Run install_openvino_dependencies.sh from the toolkit before building

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-06-03 21:59:43 -04:00
Ken VanDineandClaude Sonnet 4.6 66fa11444d ci: add Ubuntu 24 OpenVINO build job with bundled runtime libs
Adds a new release job that builds llama.cpp with -DGGML_OPENVINO=ON,
bundles libopenvino*.so*, plugins.xml (with paths rewritten to basenames
for $ORIGIN portability), and TBB alongside llama-server, then publishes
llama-{tag}-bin-ubuntu-openvino-2026.0-x64.tar.gz so lemonade can
download it without requiring a system-wide OpenVINO install.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-06-03 21:31:52 -04:00
Ken VanDineandClaude Sonnet 4.6 f19267d652 ci: fix extra brace in release script and add arm64 CUDA to release body
Remove duplicate closing brace that would cause a SyntaxError in the
Create-or-get-release github-script step on scheduled/manual runs.
Add Ubuntu arm64 CUDA artifact line to the release body template.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-06-03 10:20:35 -04:00
Ken VanDineandClaude Opus 4.8 a6d44e7651 ci: package Linux CUDA archives under a versioned directory
The CUDA pack steps emitted a flat archive (files at the root), which
diverged from the ROCm Linux tarball and prior CUDA releases that extract
into a single llama-<tag>/ directory, and risks polluting the current
directory on extraction.

Restore the versioned top-level directory, but build it explicitly with
mkdir + cp instead of `tar --transform "s,./,..."`. The transform only
rewrites member paths when tar preserves the leading ./, which the x64
ubuntu-22.04 tar strips and the ubuntu-22.04-arm tar keeps, so the same
YAML produced different layouts. Staging into the directory first yields
an identical llama-<tag>/ layout on both runners.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-03 08:25:05 -04:00
Ken VanDineandClaude Opus 4.8 41a26c8afa ci: flatten Linux CUDA archive layout consistently
The CUDA pack steps used --transform "s,./,llama-<tag>/," which only
matches when tar preserves the leading ./ on member names. The x64
ubuntu-22.04 runner's tar strips ./ (files land flat at the root) while
the ubuntu-22.04-arm runner's tar keeps it (files nest under llama-<tag>/),
so identical YAML produced different archive layouts.

Drop the transform from both CUDA pack steps so both archives are flat at
the root regardless of tar version, and remove the now-unused tag step
from each CUDA job. Release filenames are unaffected (the release job has
its own tag step).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-02 23:10:27 -04:00
Claude 3688852ee4 ci: add arm64 CUDA Linux build job
Add ubuntu-22-cuda-arm64 job that mirrors ubuntu-22-cuda but runs on
ubuntu-22.04-arm runners and installs CUDA from NVIDIA's sbsa (aarch64)
repository. Artifacts are named with an arm64 suffix and the release job
is updated to depend on the new job.

https://claude.ai/code/session_019XSHjm8s2EGgd7EDtmcM9d
2026-06-02 22:56:56 +00:00
copilot-swe-agent[bot] 8f97eba982 Move no-artifact check before release creation 2026-06-01 03:33:15 +00:00
Ken VanDineandCopilot Autofix powered by AI bc035bef35 Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-05-31 23:18:23 -04:00
copilot-swe-agent[bot] 082b5860da fix: handle 422 release upload conflicts during retry 2026-06-01 02:52:41 +00:00
Ken VanDineandCopilot Autofix powered by AI 92ae7282db Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-06-01 02:52:41 +00:00
Ken VanDineandClaude Opus 4.8 edaa4435c3 Make release upload idempotent and retry-safe
A transient GitHub outage during the upload step of a scheduled run left
b9443 with only 6 of 17 assets attached (missing most CUDA archs). The
upload loop had no retry, so a single fetch failure aborted everything
remaining, and the create/upload steps were gated on the tag not yet
existing, so a re-run would skip upload entirely and never self-heal.

- Replace the tag-exists check + action-create-release with a
  getReleaseByTag-or-create step so a re-run reuses an existing release.
- Wrap each uploadReleaseAsset in exponential backoff (retrying only
  transient errors: network/5xx/429) so one blip no longer aborts the
  whole upload.
- List already-attached assets and skip them, so re-runs only fill gaps.
- Fail loudly if no artifacts are found instead of publishing nothing.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-01 02:52:41 +00:00
Ken VanDineandClaude Opus 4.8 8cb5a00932 Drop .github/actions/** from release PR path filter
The release workflow consumes the get-tag-name composite action via a
pinned remote ref (lemonade-sdk/llama.cpp/.github/actions/get-tag-name@lemonade),
not a PR-local ./ path. A PR run therefore always uses the action from
the lemonade branch, so triggering on .github/actions/** changes would
run the old action version and falsely imply the change was validated.

Scope the PR trigger to the workflow file itself, which is the only
PR-controllable input that actually affects the outcome.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-05-31 14:44:08 -04:00
Ken VanDineandClaude Opus 4.8 0f51db6929 Validate the release build on pull requests
Run the release build/pack jobs on PRs so packaging issues (missing
runtime DLLs, RPATH problems, PowerShell quoting bugs, etc.) surface
before merging instead of only on the scheduled/dispatched release runs.

The existing release job is gated on schedule/create_release, so it is
skipped on pull_request and nothing is published.

To keep PR runs affordable:
- Scope the pull_request trigger to .github/** paths. The build jobs
  clone llama.cpp source from upstream, so only changes to the release
  pipeline itself can affect the outcome.
- Build a single representative CUDA arch (sm_89) on PRs; the packaging
  logic is identical across all sm_*. The full matrix still runs on
  schedule/dispatch.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-05-30 13:43:32 -04:00
Ken VanDineandClaude Opus 4.8 46f4b58965 Fix nvJitLink DLL match pattern for windows-cuda packaging
The nvjitlink sub-package is now installed (#8), but the Pack artifacts
step still failed to find the DLL:

  Missing CUDA runtime DLL matching nvJitLink64_*.dll in
  C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\bin

Unlike cudart64_*/cublas64_*/curand64_*, the Windows nvJitLink
redistributable does not use the "64_" infix -- it is named
nvJitLink_120_0.dll. Match it with nvJitLink_*.dll instead.

This pattern is used both to copy the DLL from the CUDA bin directory
and to validate the staged package, so the single change fixes both.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-05-30 13:38:46 -04:00
Ken VanDineandClaude Opus 4.8 3763cc6fa5 Install nvjitlink CUDA sub-package for windows-cuda
The windows-cuda Pack artifacts step requires nvJitLink64_*.dll (cublasLt
in CUDA 12 depends on nvJitLink for JIT linking, and the ubuntu-cuda job
bundles libnvJitLink.so for the same reason). But the Jimver/cuda-toolkit
sub-package list omitted nvjitlink, so the DLL was never installed and the
pack step failed:

  Missing CUDA runtime DLL matching nvJitLink64_*.dll in
  C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8\bin

Add the nvjitlink sub-package so the runtime DLL is present.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-05-30 12:38:46 -04:00
Ken VanDineandClaude Opus 4.8 12a87c5c2e Fix windows-cuda pack step PowerShell parse error
Write-Host "Contents of $releaseDir:" was parsed as a scope/drive
qualified variable ($releaseDir:), which PowerShell rejects with:

  Variable reference is not valid. ':' was not followed by a valid
  variable name character.

Because this is a parse-time error, the entire Pack artifacts script
failed to run, breaking every windows-cuda matrix job. Wrap the variable
in ${} to delimit the name from the trailing colon.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-05-30 12:18:44 -04:00
Ken VanDineandClaude Opus 4.8 79cb3ee567 Fix ubuntu-cuda RPATH step missing the llama executable
The Set RPATH step only patched build/bin/*.so* and build/bin/llama-*,
so the bare `llama` executable (no dash suffix) kept its build-time
RPATH (an absolute build path). The validation step iterates over every
ELF file in build/bin and rejected `llama` with:

  Unexpected RPATH '/home/runner/work/llama.cpp/llama.cpp/build/bin:'

Iterate over all of build/bin/* in the RPATH step so it covers exactly
the same files the validation step checks, ensuring every shipped ELF
gets $ORIGIN.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-05-30 11:29:35 -04:00
Ken VanDineandClaude Opus 4.8 5115ec019e Fix windows-cpu pack step failing to locate OpenMP DLL
The dynamic MSVC redist resolution sorted version directories by name
descending, which selected the `v143` folder over the numbered version
folder. `v143` lacks the `debug_nonredist\<arch>\Microsoft.VC143.OpenMP.LLVM`
subtree, so the libomp140 copy failed with a "Cannot find path" error.

Search recursively for the libomp140 DLL under the redist directory and
filter to the debug_nonredist\<arch> location instead of guessing the
version folder. This is robust to MSVC version bumps in the runner image
and fails fast with a clear message if the DLL is missing.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-05-30 11:08:54 -04:00
Ken VanDine 14a95211fe Merge pull request #5 from Phqen1x/lemonade
Add NVIDIA CUDA builds
2026-05-30 16:46:28 +02:00
Ken VanDineandCopilot 360c2fdfbc Validate final Windows CUDA package
Co-authored-by: Copilot <[email protected]>
2026-05-30 10:44:01 -04:00
Ken VanDineandCopilot 387edb7d90 Fix CUDA release packaging checks
Co-authored-by: Copilot <[email protected]>
2026-05-30 10:27:38 -04:00
Ken VanDineandCopilot Autofix powered by AI 430dc7bb29 Fail job if windows CPU only fails
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-05-30 10:00:23 -04:00
Ken VanDineandCopilot Autofix powered by AI 9bcce0ec48 Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-05-30 09:55:06 -04:00
Ken VanDineandCopilot Autofix powered by AI c0b817e8ac Fail the build if missing files
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-05-30 09:44:08 -04:00
Drew VanDineandClaude Sonnet 4.6 6c00cb2812 fix: address Copilot review suggestions on CUDA build workflow
- Add missing libcudart.so* to CUDA runtime bundle step
- Switch cp -v to cp -av to preserve .so symlink chains
- Replace silenced patchelf errors with ELF-aware detection that fails on real ELF binaries
- Add LICENSE to Ubuntu CUDA tarballs (parity with ROCm artifacts)
- Rename CUDA artifacts with llama-<tag>- prefix for consistency with ROCm/CPU naming
- Replace hard-coded Phqen1x/llama.cpp URLs with ${{ github.repository }}

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-29 21:02:31 -04:00
Drew VanDineandClaude Sonnet 4.6 a35f126f22 fix: allow release to proceed even if windows-cpu job fails
Add continue-on-error: true to windows-cpu so dependent jobs treat it
as succeeded regardless of outcome. Guard the CPU artifact merge step
to skip gracefully when the zip is absent.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-24 12:40:19 -04:00
Mario Limonciello (AMD) a9a8430f99 Run job more frequently
This will keep it more aligned with upstream.
2026-05-22 08:08:24 -05:00
Drew VanDineandClaude Sonnet 4.6 a6937dbb9d fix: dynamically resolve MSVC redist path in windows-cpu pack step
Hardcoded version 14.44.35112 no longer exists after runner toolset update.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-18 21:32:31 -04:00
Drew VanDineandClaude Sonnet 4.6 0f5ed1978a feat: add CUDA build jobs (Linux + Windows) to release workflow
Adds ubuntu-22-cuda and windows-cuda jobs covering all SM architectures
that lemonade supports (sm_75 through sm_120). Each arch builds as an
independent matrix entry (fail-fast: false).

Linux artifacts are packaged as .tar.xz and Windows as .7z, matching the
filenames lemonade expects when downloading CUDA backends at runtime.
The release job moves these files as-is — filenames are not tag-prefixed
because lemonade uses the release tag in the download URL, not embedded
in the filename.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-18 20:18:32 -04:00
George Sofianos 2f7165ae7e fix: add rdna1 and rdna2 targets 2026-05-17 08:58:26 -05:00
Jeremy Fowers e6452b54cd windows-rocm: drop deprecated -DGPU_TARGETS in favor of -DAMDGPU_TARGETS
Per PR review: GPU_TARGETS is the legacy name and AMDGPU_TARGETS is the
canonical one consumed by both HIP's CMake module and ggml's HIP
backend (ggml/src/ggml-hip/CMakeLists.txt:30 forwards AMDGPU_TARGETS to
CMAKE_HIP_ARCHITECTURES). The earlier defensive belt-and-suspenders
"set both" wasn't needed.
2026-05-16 00:00:00 -04:00
Jeremy Fowers 380c908ff2 windows-rocm: silence -Werror=incompatible-pointer-types on x86 CPU quants
The CPU per-microarch variants (now enabled by GGML_CPU_ALL_VARIANTS=ON)
fail to compile with TheRock 7.13's clang because upstream llama.cpp's
ggml/src/ggml-cpu/arch/x86/quants.c calls _mm_prefetch with a
const block_q4_0 * / const block_q8_0 * pointer instead of const char *.
Clang treats this as a hard error by default:

    quants.c:782:22: error: incompatible pointer types passing
        'const block_q4_0 *' to parameter of type 'const char *'
        [-Wincompatible-pointer-types]

The cast is harmless at runtime - _mm_prefetch just consumes the address -
so demote it back to a warning via -Wno-error=incompatible-pointer-types
in CMAKE_C_FLAGS. This unblocks the CPU SSE42 / haswell / etc. variants.
2026-05-15 20:47:59 -04:00
Jeremy Fowers d6d8dbb67c windows-rocm: flip GGML_CPU=ON so per-microarch variants compile
The prior commit added -DGGML_CPU_ALL_VARIANTS=ON but kept -DGGML_CPU=OFF,
which fails configure with:

    CMake Error at ggml/src/CMakeLists.txt:349 (ggml_add_cpu_backend_variant_impl):
      Unknown CMake command "ggml_add_cpu_backend_variant_impl".

The function lives in ggml/src/ggml-cpu/CMakeLists.txt. That subdirectory is
only added by ggml_add_backend(CPU), which is gated on GGML_CPU truthy. With
GGML_CPU=OFF the subdir is never loaded so the function is undefined when
GGML_CPU_ALL_VARIANTS tries to call it.

Flip to GGML_CPU=ON; the GGML_CPU_ALL_VARIANTS branch takes precedence over
the single-variant elseif (GGML_CPU) at ggml/src/CMakeLists.txt:377, so we
still get the per-microarch ggml-cpu-*.dll plugins (matching the historical
artifact layout) rather than a single ggml-cpu.dll.
2026-05-15 20:20:35 -04:00
Jeremy Fowers b65b264491 windows-rocm: add -DGGML_CPU_ALL_VARIANTS=ON so the CPU backend ships
The previous fix added -DGGML_HIP=ON and produced a working ggml-hip.dll,
but at runtime llama.cpp failed model load with:

    llama_model_load: error loading model: make_cpu_buft_list: no CPU backend found
    srv main: exiting due to model loading error

GGML needs a CPU backend even when the model runs on GPU - for non-GPU
buffer types like host scratch buffers. The Windows job sets -DGGML_CPU=OFF
and previously emitted per-microarch CPU plugin DLLs (ggml-cpu-zen4.dll etc.)
via GGML_CPU_ALL_VARIANTS, but that variable defaults to OFF and was never
explicitly set. The prior CPU-only labeled "rocm" zip happened to ship those
plugins under different cmake conditions; once GGML_HIP=ON was added and the
HIP build path actually configured, the CPU plugin path stopped being taken.

Add -DGGML_CPU_ALL_VARIANTS=ON to bring the per-microarch CPU plugins back,
matching what the older "rocm-stable" zip contained and what llama.cpp needs
at load time.
2026-05-15 17:36:27 -04:00