trying another fix for rocm-6.4.4-rocwmma

This commit is contained in:
Donato Capitella
2025-11-12 07:55:03 +00:00
parent 52ee9d50f2
commit e36bd3e4ec
+2 -1
View File
@@ -49,7 +49,7 @@ 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 \
&& bash -lc 'f=/opt/llama.cpp/ggml/src/ggml-cuda/mmid.cu; \ && bash -lc 'f=/opt/llama.cpp/ggml/src/ggml-cuda/mma.cuh; \
grep -q "vendors/hip.h" "$f" || sed -i '\''1i #include "vendors/hip.h"'\'' "$f"' \ grep -q "vendors/hip.h" "$f" || sed -i '\''1i #include "vendors/hip.h"'\'' "$f"' \
&& cmake -S . -B build \ && cmake -S . -B build \
-DGGML_HIP=ON \ -DGGML_HIP=ON \
@@ -65,6 +65,7 @@ RUN git clean -xdf \
&& cmake --install build --config Release && cmake --install build --config Release
# libs # libs
RUN find /opt/llama.cpp/build -type f -name 'lib*.so*' -exec cp {} /usr/lib64/ \; \ RUN find /opt/llama.cpp/build -type f -name 'lib*.so*' -exec cp {} /usr/lib64/ \; \
&& ldconfig && ldconfig