commit: 37f4b2ddc87bc6d56eea5298374186838a39f1b4 Author: Sergey Alirzaev <l29ah <AT> riseup <DOT> net> AuthorDate: Thu Jul 3 22:22:34 2025 +0000 Commit: Sergey Alirzaev <zl29ah <AT> gmail <DOT> com> CommitDate: Thu Jul 3 22:22:34 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=37f4b2dd
sci-misc/llama-cpp: vulkan support Signed-off-by: Sergey Alirzaev <l29ah <AT> riseup.net> sci-misc/llama-cpp/llama-cpp-0_pre5821.ebuild | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sci-misc/llama-cpp/llama-cpp-0_pre5821.ebuild b/sci-misc/llama-cpp/llama-cpp-0_pre5821.ebuild index 333c68cfd2..297952fc97 100644 --- a/sci-misc/llama-cpp/llama-cpp-0_pre5821.ebuild +++ b/sci-misc/llama-cpp/llama-cpp-0_pre5821.ebuild @@ -23,7 +23,7 @@ HOMEPAGE="https://github.com/ggml-org/llama.cpp" LICENSE="MIT" SLOT="0" CPU_FLAGS_X86=( avx avx2 f16c ) -IUSE="curl openblas blis hip cuda" +IUSE="curl openblas blis hip cuda vulkan" REQUIRED_USE="?? ( openblas blis )" AMDGPU_TARGETS_COMPAT=( @@ -49,15 +49,19 @@ AMDGPU_TARGETS_COMPAT=( # curl is needed for pulling models from huggingface # numpy is used by convert_hf_to_gguf.py -DEPEND=" +CDEPEND=" curl? ( net-misc/curl:= ) openblas? ( sci-libs/openblas:= ) blis? ( sci-libs/blis:= ) hip? ( >=dev-util/hip-6.3:= ) cuda? ( dev-util/nvidia-cuda-toolkit:= ) " -RDEPEND="${DEPEND} +DEPEND="${CDEPEND} + vulkan? ( dev-util/vulkan-headers ) +" +RDEPEND="${CDEPEND} dev-python/numpy + vulkan? ( media-libs/vulkan-loader ) " src_prepare() { @@ -77,6 +81,7 @@ src_configure() { -DBUILD_NUMBER="1" -DGENTOO_REMOVE_CMAKE_BLAS_HACK=ON -DGGML_CUDA=$(usex cuda ON OFF) + -DGGML_VULKAN=$(usex vulkan ON OFF) # avoid clashing with whisper.cpp -DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)/llama.cpp"
