public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ollama] epel10: Enable aarch64 CPU support
@ 2026-11-09 13:39 Alexander F. Lent
  0 siblings, 0 replies; only message in thread
From: Alexander F. Lent @ 2026-11-09 13:39 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/ollama
            Branch : epel10
            Commit : d624883f0adb3a987834229c1f2fba952f8be634
            Author : Alexander F. Lent <lx@xanderlent.com>
            Date   : 2026-01-11T16:10:02-05:00
            Stats  : +7/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ollama/c/d624883f0adb3a987834229c1f2fba952f8be634?branch=epel10

            Log:
            Enable aarch64 CPU support

While GGML supports ppc64le and s390x, the Ollama project strips all
arches other than x86 and aarch64 from the build.
They also don't support CPU arch variants for aarch64.

Signed-off-by: Alexander F. Lent <lx@xanderlent.com>

---
diff --git a/ollama.spec b/ollama.spec
index 804196f..404f0ec 100644
--- a/ollama.spec
+++ b/ollama.spec
@@ -7,8 +7,8 @@
 %bcond rocm 0
 %endif
 
-# build problems on aarch64, ppc64le and s390x
-ExcludeArch:    aarch64 ppc64le s390x
+# bundled GGML sources are missing ppc64le and s390x
+ExcludeArch:    ppc64le s390x
 
 # Build the next version of ollama
 %bcond next 0
@@ -152,6 +152,7 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
 %doc CONTRIBUTING.md SECURITY.md README.md app-README.md integration-README.md
 %doc llama-README.md
 %{_prefix}/lib/ollama/libggml-base.so
+%ifarch x86_64
 %{_prefix}/lib/ollama/libggml-cpu-alderlake.so
 %{_prefix}/lib/ollama/libggml-cpu-haswell.so
 %{_prefix}/lib/ollama/libggml-cpu-icelake.so
@@ -159,6 +160,10 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
 %{_prefix}/lib/ollama/libggml-cpu-skylakex.so
 %{_prefix}/lib/ollama/libggml-cpu-sse42.so
 %{_prefix}/lib/ollama/libggml-cpu-x64.so
+%else
+# upstream CMakeLists.txt disables GGML CPU variants on aarch64
+%{_prefix}/lib/ollama/libggml-cpu.so
+%endif
 %{_bindir}/ollama
 
 %if %{with rocm}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-09 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 13:39 [rpms/ollama] epel10: Enable aarch64 CPU support Alexander F. Lent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox