commit:     a16045671d92d0f8e5b9949eadd44af61e9653e1
Author:     Sergey Alirzaev <l29ah <AT> riseup <DOT> net>
AuthorDate: Tue Aug 12 21:38:33 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Aug 12 21:38:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a1604567

sci-misc/llama-cpp: add 0_pre6140, drop 0_pre6002

for gpt-oss support

Signed-off-by: Sergey Alirzaev <l29ah <AT> riseup.net>

 sci-misc/llama-cpp/Manifest                                           | 2 +-
 .../{llama-cpp-0_pre6002.ebuild => llama-cpp-0_pre6140.ebuild}        | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sci-misc/llama-cpp/Manifest b/sci-misc/llama-cpp/Manifest
index 13fbae4c70..643be0d0c0 100644
--- a/sci-misc/llama-cpp/Manifest
+++ b/sci-misc/llama-cpp/Manifest
@@ -2,5 +2,5 @@ DIST llama-cpp-0_pre4576.tar.gz 20506059 BLAKE2B 
8f011811e4df1f8d0c26b19f96a7099
 DIST llama-cpp-0_pre5097.tar.gz 21018571 BLAKE2B 
001241580964aa6874a3aa4dbfa0a8cda58a144578992f6a6df7c5c7887cda847503f47c7f3be7b19bb3758ab6ce8de60435e29129cac71672160b29b1cab340
 SHA512 
86543cd001014fa4fee01a37d46e1794c2ffac7c25c7ed328aa4afd3d615b7f42b617ca5d8a0a78b5a41e31cb81184fc6f55f58ffd9433acb3f36cb947a620a5
 DIST llama-cpp-0_pre5332.tar.gz 21140774 BLAKE2B 
a390d4c1c6902d90d1e779291e1fcbe69ab57eb35a5df0be6fb3d9edc88b086a18bcf48983b3c0b2e88d0cfaaddbfdeee74fb126b8a758547836f5b83dd4bc33
 SHA512 
c19c3a6b47684f9466e2872aa67d8516add69028c4fdc7d1abb7a0ff7d87b92adfdaf773cda87461be8e891285c6de34a4edca70244936e8efaf10cc02126a8d
 DIST llama-cpp-0_pre5633.tar.gz 24986657 BLAKE2B 
6215dbfea54cb23a57419cc5a530be5622ec834c6d005337bcf92c50e152979375592088e215845e8f07c6b3f7eec15132cd15ebf9b0725adabe499951ae4735
 SHA512 
11a1917eb86c7065ea901cb62bdc7a25d8d7b962358570c2c7ae0c2d7abce6d19ebc6af74512593ebafbb4ee23546128cf8bfee5ba769c4f3cd2e254cdc1a1a4
-DIST llama-cpp-0_pre6002.tar.gz 25253850 BLAKE2B 
0767feea94598bbe6ea4a27b20dfda9c3423a9a6c6e4fc66f464c58fda2b13becdd703789604f7a2b424e335ddbe7eef3ee9ee33415ce135ed6eda2456578cca
 SHA512 
57777dc0bfc7386daac6d0ea677d9c56e0db2feac7fa83f2468a057fca5d5ba829bb332ee64ba6049c969cdd7c2eca7501fe401f1bd5f4e8728ce453b160511f
 DIST llama-cpp-0_pre6092.tar.gz 25460137 BLAKE2B 
0860e6a6e469765d2a81202713e635eb9c3b269d6f6b57c09fe2c8d462b2c03e65858195ff89ce685fae14fa1c25bfe1fc4ce0fa40bfeabf85ce566867848be3
 SHA512 
3975d176316cc9f3fdfa2183581ca4c57b30f3fc9c15d7eb94144be2de323d5fd2cd82fc345965cc1b8334059657a7666331efdb4fa7adf74114282ecb2abbec
+DIST llama-cpp-0_pre6140.tar.gz 25487270 BLAKE2B 
48b809c860437a8eb8b886e417299c2135dcd3c74aa2782b0380b0785b4e8c383c6061bd7ac43e9eddb1e31769ccceb48811a5433d45ac41adb00ece0e6af93d
 SHA512 
d8e904ddd6b935f84230ee163414922f572e71e2dd05d639a5b1a4a36c6841ac476f81be8e39f087712766e88564d8a499cdff4d717a5f910caf9f799a2b998d

diff --git a/sci-misc/llama-cpp/llama-cpp-0_pre6002.ebuild 
b/sci-misc/llama-cpp/llama-cpp-0_pre6140.ebuild
similarity index 95%
rename from sci-misc/llama-cpp/llama-cpp-0_pre6002.ebuild
rename to sci-misc/llama-cpp/llama-cpp-0_pre6140.ebuild
index 99dc17ab50..8b6d1fecff 100644
--- a/sci-misc/llama-cpp/llama-cpp-0_pre6002.ebuild
+++ b/sci-misc/llama-cpp/llama-cpp-0_pre6140.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 opencl vulkan"
+IUSE="curl openblas +openmp blis hip cuda opencl vulkan"
 REQUIRED_USE="?? ( openblas blis )"
 
 # curl is needed for pulling models from huggingface
@@ -31,6 +31,7 @@ REQUIRED_USE="?? ( openblas blis )"
 CDEPEND="
        curl? ( net-misc/curl:= )
        openblas? ( sci-libs/openblas:= )
+       openmp? ( llvm-runtimes/openmp:= )
        blis? ( sci-libs/blis:= )
        hip? ( >=dev-util/hip-6.3:=
                >=sci-libs/hipBLAS-6.3:=
@@ -77,6 +78,7 @@ src_configure() {
                -DGENTOO_REMOVE_CMAKE_BLAS_HACK=ON
                -DGGML_CUDA=$(usex cuda ON OFF)
                -DGGML_OPENCL=$(usex opencl ON OFF)
+               -DGGML_OPENMP=$(usex openmp ON OFF)
                -DGGML_VULKAN=$(usex vulkan ON OFF)
 
                # avoid clashing with whisper.cpp

Reply via email to