commit: 04ca4460ca1b8854b99ca51d1351a528f3345840 Author: Rok Faith <rok <AT> faith <DOT> si> AuthorDate: Mon Jan 19 13:15:13 2026 +0000 Commit: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com> CommitDate: Mon Jan 26 14:10:11 2026 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=04ca4460
sci-misc/llama-cpp: update 9999: change USE hip -> rocm Signed-off-by: Rok Faith <rok <AT> faith.si> Part-of: https://github.com/gentoo/guru/pull/420 Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com> sci-misc/llama-cpp/llama-cpp-9999.ebuild | 11 ++++++----- sci-misc/llama-cpp/metadata.xml | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/sci-misc/llama-cpp/llama-cpp-9999.ebuild b/sci-misc/llama-cpp/llama-cpp-9999.ebuild index a81045e6d7..5b70066b26 100644 --- a/sci-misc/llama-cpp/llama-cpp-9999.ebuild +++ b/sci-misc/llama-cpp/llama-cpp-9999.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 +openmp blis hip cuda opencl vulkan flexiblas" +IUSE="curl openblas +openmp blis rocm cuda opencl vulkan flexiblas" REQUIRED_USE="?? ( openblas blis flexiblas )" # curl is needed for pulling models from huggingface @@ -34,8 +34,9 @@ CDEPEND=" openmp? ( llvm-runtimes/openmp:= ) blis? ( sci-libs/blis:= ) flexiblas? ( sci-libs/flexiblas:= ) - hip? ( >=dev-util/hip-6.3:= - >=sci-libs/hipBLAS-6.3:= + rocm? ( + >=dev-util/hip-${ROCM_VERSION}:= + >=sci-libs/hipBLAS-${ROCM_VERSION}:= ) cuda? ( dev-util/nvidia-cuda-toolkit:= ) " @@ -51,7 +52,7 @@ RDEPEND="${CDEPEND} BDEPEND="media-libs/shaderc" pkg_setup() { - if use hip; then + if use rocm; then linux-info_pkg_setup if linux-info_get_any_version && linux_config_exists; then if ! linux_chkconfig_present HSA_AMD_SVM; then @@ -113,7 +114,7 @@ src_configure() { addpredict "/dev/char/" fi - if use hip; then + if use rocm; then rocm_use_hipcc mycmakeargs+=( -DGGML_HIP=ON -DAMDGPU_TARGETS=$(get_amdgpu_flags) diff --git a/sci-misc/llama-cpp/metadata.xml b/sci-misc/llama-cpp/metadata.xml index 63987291db..3c0d0befbb 100644 --- a/sci-misc/llama-cpp/metadata.xml +++ b/sci-misc/llama-cpp/metadata.xml @@ -7,6 +7,7 @@ <use> <flag name="blis">Build a BLIS backend</flag> <flag name="flexiblas">Build a FlexiBLAS backend</flag> + <flag name="rocm">Build a HIP (ROCm) backend</flag> <flag name="hip">Build a HIP (ROCm) backend</flag> <flag name="openblas">Build an OpenBLAS backend</flag> <flag name="opencl">Build an OpenCL backend, so far only works on Adreno and Intel GPUs</flag>
