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/llama-cpp] rawhide: Add vulkan support
Date: Tue, 23 Jun 2026 15:19:15 GMT [thread overview]
Message-ID: <178222795594.1.1887000124900828530.rpms-llama-cpp-3818fbe0a268@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-23 15:19 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=178222795594.1.1887000124900828530.rpms-llama-cpp-3818fbe0a268@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