remove AI slop and use correct envs to pass flasg to HIP compiler

This commit is contained in:
Donato Capitella
2026-02-04 16:21:32 +00:00
parent 7ffa22d8de
commit bd8069fe2f
+4 -3
View File
@@ -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 \