From b6de7881ddea14d4f397872ac8842762a84a2888 Mon Sep 17 00:00:00 2001 From: Donato Capitella Date: Wed, 12 Nov 2025 09:53:55 +0000 Subject: [PATCH] fix hredoc synatx in rocm-6.4.4-rocwmma --- toolboxes/Dockerfile.rocm-6.4.4-rocwmma | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/toolboxes/Dockerfile.rocm-6.4.4-rocwmma b/toolboxes/Dockerfile.rocm-6.4.4-rocwmma index 1c3e61d..c4e1240 100644 --- a/toolboxes/Dockerfile.rocm-6.4.4-rocwmma +++ b/toolboxes/Dockerfile.rocm-6.4.4-rocwmma @@ -49,11 +49,9 @@ RUN chmod +x /opt/apply-rocwmma-fix.sh && /opt/apply-rocwmma-fix.sh /opt/llama.c RUN git clean -xdf \ && git pull \ && git submodule update --recursive \ - && rm -f /opt/llama.cpp/ggml/src/ggml-cuda/mma.cuh.tmp \ && cat > /opt/llama.cpp/ggml/src/ggml-cuda/hip_shfl_fix.h <<'EOF' #ifndef HIP_SHFL_FIX_H #define HIP_SHFL_FIX_H -// Keep vendor shims if present, add only what’s missing. #ifdef __HIP_PLATFORM_AMD__ #ifndef __shfl_sync #define __shfl_sync(mask,var,srcLane,width) __shfl((var),(srcLane),(width)) @@ -67,8 +65,8 @@ RUN git clean -xdf \ #endif #endif EOF - && f=/opt/llama.cpp/ggml/src/ggml-cuda/mma.cuh; \ - grep -q 'hip_shfl_fix.h' "$f" || sed -i '1i #include "hip_shfl_fix.h"' "$f" \ + && f=/opt/llama.cpp/ggml/src/ggml-cuda/mma.cuh \ + && grep -q 'hip_shfl_fix.h' "$f" || sed -i '1i #include "hip_shfl_fix.h"' "$f" \ && cmake -S . -B build \ -DGGML_HIP=ON \ -DAMDGPU_TARGETS=gfx1151 \