public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/llama-cpp] rawhide: Fix rocm build
@ 2026-06-22 14:14 Tom Rix
  0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-06-22 14:14 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/llama-cpp
            Branch : rawhide
            Commit : 40a0918442907aaa5a3eba452f28bbb009a23c74
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-06-22T07:13:27-07:00
            Stats  : +8/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/llama-cpp/c/40a0918442907aaa5a3eba452f28bbb009a23c74?branch=rawhide

            Log:
            Fix rocm build

Signed-off-by: Tom Rix <Tom.Rix@amd.com>

---
diff --git a/llama-cpp.spec b/llama-cpp.spec
index 45887a9..6e75b43 100644
--- a/llama-cpp.spec
+++ b/llama-cpp.spec
@@ -92,12 +92,14 @@ BuildRequires:  rocblas-devel
 BuildRequires:  hipblas-devel
 BuildRequires:  rocm-runtime-devel
 BuildRequires:  rocm-rpm-macros
-%endif
 
-Requires:       curl
 Requires:       hipblas
 Requires:       rocblas
 
+%endif
+
+Requires:       curl
+
 Recommends:     numactl
 
 %description
@@ -259,7 +261,9 @@ export LD_LIBRARY_PATH=$PWD/%{_vpath_builddir}/bin
 %{_libdir}/libggml.so.*
 %{_libdir}/libggml-base.so.*
 %{_libdir}/libggml-cpu.so.*
+%if %{with rocm}
 %{_libdir}/libggml-hip.so.*
+%endif
 %{_bindir}/llama
 %{_bindir}/llama-batched-bench
 %{_bindir}/llama-bench
@@ -302,7 +306,9 @@ export LD_LIBRARY_PATH=$PWD/%{_vpath_builddir}/bin
 %{_libdir}/libggml.so
 %{_libdir}/libggml-base.so
 %{_libdir}/libggml-cpu.so
+%if %{with rocm}
 %{_libdir}/libggml-hip.so
+%endif
 %{_libdir}/cmake/llama/*.cmake
 %{_libdir}/cmake/ggml/*.cmake
 %{_libdir}/pkgconfig/llama.pc

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

only message in thread, other threads:[~2026-06-22 14:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-22 14:14 [rpms/llama-cpp] rawhide: Fix rocm build Tom Rix

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