From bd8069fe2f58bcc8c387e2f7e0219a596402fbd3 Mon Sep 17 00:00:00 2001 From: Donato Capitella Date: Wed, 4 Feb 2026 16:21:32 +0000 Subject: [PATCH] remove AI slop and use correct envs to pass flasg to HIP compiler --- toolboxes/Dockerfile.rocm7-nightlies | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/toolboxes/Dockerfile.rocm7-nightlies b/toolboxes/Dockerfile.rocm7-nightlies index d0c0eaf..65c81a7 100644 --- a/toolboxes/Dockerfile.rocm7-nightlies +++ b/toolboxes/Dockerfile.rocm7-nightlies @@ -33,7 +33,8 @@ ENV ROCM_PATH=/opt/rocm-7.0 \ LD_LIBRARY_PATH=/opt/rocm-7.0/lib:/opt/rocm-7.0/lib64:/opt/rocm-7.0/llvm/lib \ LIBRARY_PATH=/opt/rocm-7.0/lib:/opt/rocm-7.0/lib64 \ CPATH=/opt/rocm-7.0/include \ - PKG_CONFIG_PATH=/opt/rocm-7.0/lib/pkgconfig + PKG_CONFIG_PATH=/opt/rocm-7.0/lib/pkgconfig \ + HIP_CLANG_FLAGS="-mllvm --amdgpu-unroll-threshold-local=600" RUN printf '%s\n' \ 'export ROCM_PATH=/opt/rocm-7.0' \ @@ -48,6 +49,7 @@ RUN printf '%s\n' \ 'export LIBRARY_PATH="$HIP_LIB_PATH:$ROCM_PATH/lib:$ROCM_PATH/lib64"' \ 'export CPATH="$HIP_INCLUDE_PATH"' \ 'export PKG_CONFIG_PATH="$ROCM_PATH/lib/pkgconfig"' \ + 'export HIP_LLVM_FLAGS="-mllvm --amdgpu-unroll-threshold-local=600"' \ > /etc/profile.d/rocm.sh \ && chmod +x /etc/profile.d/rocm.sh \ && echo 'source /etc/profile.d/rocm.sh' >> /etc/bashrc @@ -57,8 +59,7 @@ RUN git clone --recursive https://github.com/ggerganov/llama.cpp.git . \ && git clean -xdf \ && git submodule update --recursive -# Temporary workaround for ROCm 7 performance regression (https://github.com/ROCm/rocm-systems/issues/2865#issuecomment-3846679806) -ENV HIP_LLVM_FLAGS="-mllvm --amdgpu-unroll-threshold-local=600" + RUN cmake -S . -B build \ -DGGML_HIP=ON \