From 82baf877cb8ddd3ad01db409aa61a4a08d883b07 Mon Sep 17 00:00:00 2001 From: "Wang, Yanyao" Date: Fri, 3 Jan 2025 09:44:05 -0800 Subject: [PATCH] Fix miopen-deps build issue by updating rocm-recipes for boost link Signed-off-by: Wang, Yanyao --- tools/rocm-build/build_miopen-deps.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/rocm-build/build_miopen-deps.sh b/tools/rocm-build/build_miopen-deps.sh index 51bd23f1a..448edaa20 100755 --- a/tools/rocm-build/build_miopen-deps.sh +++ b/tools/rocm-build/build_miopen-deps.sh @@ -25,12 +25,12 @@ build_miopen_mlir() { -DCMAKE_PREFIX_PATH="${ROCM_PATH};${HOME}/miopen-deps" \ -DCMAKE_INSTALL_PREFIX="$ROCM_PATH" \ -DBUILD_FAT_LIBROCKCOMPILER=1 \ - .. + .. cmake --build . -- librockCompiler -j${PROC} cmake --build . -- install rm -rf _CPack_Packages/ && find -name '*.o' -delete - + echo "Finished building rocMLIR" } @@ -43,6 +43,12 @@ build_miopen_deps() { echo "Start build" cd "$COMPONENT_SRC" + # Update rocm-recipes for boost link + # https://github.com/ROCm/MIOpen/pull/3457/files + sed -i 's/329203d79f9fe77ae5d0d742af0966bc57f4dfc8/92c6695449c85887962f45509b376f2eb0d284f7/g' \ + rbuild.ini \ + install_deps.cmake \ + dev-requirements.txt # Commenting the rocMLIR & composable_kernel from requirements.txt sed -i '/ROCm\/rocMLIR@\|ROCm\/composable_kernel@/s/^/#/' requirements.txt # Extract MLIR commit from requirements.txt