From d52f18b0fa75166f5087a3e0de320137574d1ac1 Mon Sep 17 00:00:00 2001 From: Hermes Date: Sat, 9 May 2026 22:53:11 -0400 Subject: [PATCH] fix: remove gfx1200 target (not supported by ROCm 6.1 clang 17) ROCm 6.1's AMD clang 17 doesn't recognize gfx1200 architecture (introduced in ROCm 6.2+). Caused compilation failure on all .cu files. --- ai/ollama/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai/ollama/Dockerfile b/ai/ollama/Dockerfile index aedee93..f530de2 100644 --- a/ai/ollama/Dockerfile +++ b/ai/ollama/Dockerfile @@ -51,7 +51,7 @@ RUN mkdir -p build-cpu && cd build-cpu && \ # Step 2: Build HIP backend with hipcc (legacy mode skips enable_language(HIP)) RUN mkdir -p build-hip && cd build-hip && \ CC=hipcc CXX=hipcc cmake .. \ - -DAMDGPU_TARGETS="gfx906:xnack-;gfx940;gfx1010;gfx1030;gfx1100;gfx1200" \ + -DAMDGPU_TARGETS="gfx906:xnack-;gfx940;gfx1010;gfx1030;gfx1100" \ -DCMAKE_BUILD_TYPE=Release && \ CC=hipcc CXX=hipcc cmake --build . --target ggml-hip -- -l $(nproc) && \ cmake --install . --component HIP --strip --prefix /build/dist