From 9bf8a5f1bb633998fb60f9a5991df3a4ccfbf620 Mon Sep 17 00:00:00 2001 From: Jack Taylor <108682042+jataylo@users.noreply.github.com> Date: Thu, 16 Feb 2023 11:26:40 +0000 Subject: [PATCH] Exit on missing file in build_rocm.sh --- manywheel/build_rocm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manywheel/build_rocm.sh b/manywheel/build_rocm.sh index 701dc03af..e227b8576 100755 --- a/manywheel/build_rocm.sh +++ b/manywheel/build_rocm.sh @@ -168,8 +168,8 @@ do file_path=($(find $ROCM_HOME/ -name "$lib")) # Then search in ROCM_HOME fi if [[ -z $file_path ]]; then - echo "Warning: Library file $lib is not found." - file_path="NOT_FOUND" + echo "Error: Library file $lib is not found." >&2 + exit 1 fi ROCM_SO_PATHS[${#ROCM_SO_PATHS[@]}]="$file_path" # Append lib to array done