Use absolute include path for HIP shuffle shim to fix CMake compiler detection

This commit is contained in:
Donato Capitella
2025-11-12 11:54:52 +00:00
parent 0fc19e1849
commit a044056534
+3 -2
View File
@@ -59,10 +59,11 @@ RUN set -euo pipefail \
-DROCM_PATH=/opt/rocm \ -DROCM_PATH=/opt/rocm \
-DHIP_PATH=/opt/rocm \ -DHIP_PATH=/opt/rocm \
-DHIP_PLATFORM=amd \ -DHIP_PLATFORM=amd \
-DCMAKE_HIP_FLAGS="--rocm-path=/opt/rocm -include ggml/src/ggml-cuda/hip_shfl_fix.h -Wno-macro-redefined" \ -DCMAKE_HIP_FLAGS="--rocm-path=/opt/rocm -include /opt/llama.cpp/ggml/src/ggml-cuda/hip_shfl_fix.h -Wno-macro-redefined" \
&& cmake --build build --config Release -- -j"$(nproc)" \ && cmake --build build --config Release -- -j\"$(nproc)\" \
&& 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