fix hredoc synatx in rocm-6.4.4-rocwmma
This commit is contained in:
@@ -49,11 +49,9 @@ RUN chmod +x /opt/apply-rocwmma-fix.sh && /opt/apply-rocwmma-fix.sh /opt/llama.c
|
|||||||
RUN git clean -xdf \
|
RUN git clean -xdf \
|
||||||
&& git pull \
|
&& git pull \
|
||||||
&& git submodule update --recursive \
|
&& 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'
|
&& cat > /opt/llama.cpp/ggml/src/ggml-cuda/hip_shfl_fix.h <<'EOF'
|
||||||
#ifndef HIP_SHFL_FIX_H
|
#ifndef HIP_SHFL_FIX_H
|
||||||
#define HIP_SHFL_FIX_H
|
#define HIP_SHFL_FIX_H
|
||||||
// Keep vendor shims if present, add only what’s missing.
|
|
||||||
#ifdef __HIP_PLATFORM_AMD__
|
#ifdef __HIP_PLATFORM_AMD__
|
||||||
#ifndef __shfl_sync
|
#ifndef __shfl_sync
|
||||||
#define __shfl_sync(mask,var,srcLane,width) __shfl((var),(srcLane),(width))
|
#define __shfl_sync(mask,var,srcLane,width) __shfl((var),(srcLane),(width))
|
||||||
@@ -67,8 +65,8 @@ RUN git clean -xdf \
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
EOF
|
EOF
|
||||||
&& f=/opt/llama.cpp/ggml/src/ggml-cuda/mma.cuh; \
|
&& 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" \
|
&& grep -q 'hip_shfl_fix.h' "$f" || sed -i '1i #include "hip_shfl_fix.h"' "$f" \
|
||||||
&& cmake -S . -B build \
|
&& cmake -S . -B build \
|
||||||
-DGGML_HIP=ON \
|
-DGGML_HIP=ON \
|
||||||
-DAMDGPU_TARGETS=gfx1151 \
|
-DAMDGPU_TARGETS=gfx1151 \
|
||||||
|
|||||||
Reference in New Issue
Block a user