From a3d0fa0072a954a3f0bf44096df5bacc65fb25bb Mon Sep 17 00:00:00 2001 From: Hermes Date: Sat, 9 May 2026 22:19:50 -0400 Subject: [PATCH] fix: set CMAKE_HIP_COMPILER explicitly for ROCm 6.1 HIP detection --- ai/ollama/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/ai/ollama/Dockerfile b/ai/ollama/Dockerfile index 335987f..170ecc6 100644 --- a/ai/ollama/Dockerfile +++ b/ai/ollama/Dockerfile @@ -47,6 +47,7 @@ RUN mkdir -p build && cd build && \ cmake .. \ --preset 'ROCm 6' \ -DAMDGPU_TARGETS="gfx906:xnack-;gfx940;gfx1010;gfx1030;gfx1100;gfx1200" \ + -DCMAKE_HIP_COMPILER=/opt/rocm/bin/hipcc \ -DCMAKE_BUILD_TYPE=Release && \ cmake --build . -- -l $(nproc) && \ cmake --install . --component HIP --strip --prefix /build/dist