From 0c612d97312a561717b0adba9a9bfe7913208d9f Mon Sep 17 00:00:00 2001 From: Hermes Date: Sat, 9 May 2026 22:30:21 -0400 Subject: [PATCH] fix: remove unsupported AMDGPU_TARGETS (gfx1200) for ROCm 6.1 ROCm 6.1's AMD clang 17 doesn't support gfx1200 (RDNA4). Use only targets supported by ROCm 6.1: gfx906, gfx908, gfx90a, gfx1030, gfx1100. --- ai/ollama/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai/ollama/Dockerfile b/ai/ollama/Dockerfile index 172af7c..233229f 100644 --- a/ai/ollama/Dockerfile +++ b/ai/ollama/Dockerfile @@ -46,7 +46,7 @@ ENV LDFLAGS=-s RUN mkdir -p build && cd build && \ cmake .. \ --preset 'ROCm 6' \ - -DAMDGPU_TARGETS="gfx906:xnack-;gfx940;gfx1010;gfx1030;gfx1100;gfx1200" \ + -DAMDGPU_TARGETS="gfx906:xnack-;gfx908:xnack-;gfx90a:xnack-;gfx1030;gfx1100" \ -DCMAKE_HIP_COMPILER=/opt/rocm/bin/amdclang++ \ -DCMAKE_BUILD_TYPE=Release && \ cmake --build . -- -l $(nproc) && \