public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tom Rix <Tom.Rix@amd.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ollama] epel10: Enable Vulkan backend
Date: Mon, 09 Nov 2026 13:39:52 GMT	[thread overview]
Message-ID: <179423159295.1.14067210561403244326.rpms-ollama-6496d3372801@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/ollama
            Branch : epel10
            Commit : 6496d33728017c89e625fdf73117c953d50655f6
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-02-16T12:34:19-08:00
            Stats  : +11/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ollama/c/6496d33728017c89e625fdf73117c953d50655f6?branch=epel10

            Log:
            Enable Vulkan backend

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

---
diff --git a/ollama.spec b/ollama.spec
index 404f0ec..151c49f 100644
--- a/ollama.spec
+++ b/ollama.spec
@@ -6,6 +6,7 @@
 %else
 %bcond rocm 0
 %endif
+%bcond vulkan 0
 
 # bundled GGML sources are missing ppc64le and s390x
 ExcludeArch:    ppc64le s390x
@@ -54,11 +55,15 @@ BuildRequires:  rocm-runtime-devel
 BuildRequires:  rocm-hip-devel
 BuildRequires:  rocm-rpm-macros
 BuildRequires:  rocminfo
-
 Requires:       hipblas
 Requires:       rocblas
 %endif
 
+%if %{with vulkan}
+BuildRequires:  vulkan-loader-devel
+BuildRequires:  glslc
+%endif
+
 %if %{with systemd}
 BuildRequires:  systemd-rpm-macros
 
@@ -108,7 +113,7 @@ export LDFLAGS=
 %cmake_install
 
 # remove copies of system libraries
-runtime_removal="hipblas rocblas amdhip64 rocsolver amd_comgr hsa-runtime64 rocsparse tinfo rocprofiler-register drm drm_amdgpu numa elf"
+runtime_removal="hipblas rocblas amdhip64 rocsolver amd_comgr hsa-runtime64 rocsparse tinfo rocprofiler-register drm drm_amdgpu numa elf vulkan"
 for rr in $runtime_removal; do
     rm -rf %{buildroot}%{_prefix}/lib/ollama/lib${rr}*
 done
@@ -170,6 +175,10 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
 %{_prefix}/lib/ollama/libggml-hip.so
 %endif
 
+%if %{with vulkan}
+%{_prefix}/lib/ollama/libggml-vulkan.so
+%endif
+
 %if %{with systemd}
 %attr(0755,ollama,ollama) %dir  %{_var}/lib/ollama/
 %{_unitdir}/ollama.service

                 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=179423159295.1.14067210561403244326.rpms-ollama-6496d3372801@fedoraproject.org \
    --to=tom.rix@amd.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