public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ollama] epel10: Enable Vulkan backend
@ 2026-11-09 13:39 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-11-09 13:39 UTC (permalink / raw)
To: git-commits
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
^ 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 Vulkan backend Tom Rix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox