fix: set CMAKE_HIP_COMPILER explicitly for ROCm 6.1 HIP detection

This commit is contained in:
2026-05-09 22:19:50 -04:00
parent 956d76f14d
commit a3d0fa0072

View File

@@ -47,6 +47,7 @@ RUN mkdir -p build && cd build && \
cmake .. \ cmake .. \
--preset 'ROCm 6' \ --preset 'ROCm 6' \
-DAMDGPU_TARGETS="gfx906:xnack-;gfx940;gfx1010;gfx1030;gfx1100;gfx1200" \ -DAMDGPU_TARGETS="gfx906:xnack-;gfx940;gfx1010;gfx1030;gfx1100;gfx1200" \
-DCMAKE_HIP_COMPILER=/opt/rocm/bin/hipcc \
-DCMAKE_BUILD_TYPE=Release && \ -DCMAKE_BUILD_TYPE=Release && \
cmake --build . -- -l $(nproc) && \ cmake --build . -- -l $(nproc) && \
cmake --install . --component HIP --strip --prefix /build/dist cmake --install . --component HIP --strip --prefix /build/dist