public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Alexander F. Lent <lx@xanderlent.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ollama] epel10: Enable aarch64 CPU support
Date: Mon, 09 Nov 2026 13:39:50 GMT	[thread overview]
Message-ID: <179423159065.1.8677224933851417504.rpms-ollama-d624883f0adb@fedoraproject.org> (raw)

            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}

                 reply	other threads:[~2026-11-09 13:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179423159065.1.8677224933851417504.rpms-ollama-d624883f0adb@fedoraproject.org \
    --to=lx@xanderlent.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox