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

            A new commit has been pushed.

            Repo   : rpms/llama-cpp
            Branch : rawhide
            Commit : 3818fbe0a2685d3c8da652bfd5f13d26e14f38af
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-06-23T08:18:50-07:00
            Stats  : +19/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/llama-cpp/c/3818fbe0a2685d3c8da652bfd5f13d26e14f38af?branch=rawhide

            Log:
            Add vulkan support

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

---
diff --git a/llama-cpp.spec b/llama-cpp.spec
index 1dbbc6f..588850e 100644
--- a/llama-cpp.spec
+++ b/llama-cpp.spec
@@ -50,6 +50,7 @@ ExclusiveArch:  x86_64 aarch64
 %else
 %bcond_with rocm
 %endif
+%bcond_without vulkan
 
 %if %{with rocm}
 %global build_hip ON
@@ -61,6 +62,12 @@ ExclusiveArch:  x86_64 aarch64
 %global toolchain gcc
 %endif
 
+%if %{with vulkan}
+%global build_vulkan ON
+%else
+%global build_vulkan OFF
+%endif
+
 BuildRequires:  cmake
 BuildRequires:  curl
 BuildRequires:  git
@@ -95,11 +102,15 @@ BuildRequires:  rocm-rpm-macros
 
 Requires:       hipblas
 Requires:       rocblas
+%endif
 
+%if %{with vulkan}
+BuildRequires:  glslc
+BuildRequires:  spirv-headers-devel
+BuildRequires:  vulkan-loader-devel
 %endif
 
 Requires:       curl
-
 Recommends:     numactl
 
 %description
@@ -207,6 +218,7 @@ export HIPCC_COMPILE_FLAGS_APPEND="--offload-compress"
     -DGGML_FMA=OFF \
     -DGGML_F16C=OFF \
     -DGGML_HIP=%{build_hip} \
+    -DGGML_VULKAN=%{build_vulkan} \
     -DAMDGPU_TARGETS=%{rocm_gpu_list_default} \
     -DLLAMA_BUILD_EXAMPLES=%{build_examples} \
     -DLLAMA_BUILD_TESTS=%{build_test}
@@ -264,6 +276,9 @@ export LD_LIBRARY_PATH=$PWD/%{_vpath_builddir}/bin
 %if %{with rocm}
 %{_libdir}/libggml-hip.so.*
 %endif
+%if %{with vulkan}
+%{_libdir}/libggml-vulkan.so.*
+%endif
 %{_bindir}/llama
 %{_bindir}/llama-batched-bench
 %{_bindir}/llama-bench
@@ -309,6 +324,9 @@ export LD_LIBRARY_PATH=$PWD/%{_vpath_builddir}/bin
 %if %{with rocm}
 %{_libdir}/libggml-hip.so
 %endif
+%if %{with vulkan}
+%{_libdir}/libggml-vulkan.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-23 15:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-23 15:19 [rpms/llama-cpp] rawhide: Add vulkan support Tom Rix

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