Skip to content

Commit

Permalink
Exit on missing file in build_rocm.sh
Browse files Browse the repository at this point in the history
(cherry picked from commit 9bf8a5f)
  • Loading branch information
jataylo committed Feb 16, 2023
1 parent 888891f commit 4b4920d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manywheel/build_rocm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,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
Expand Down

0 comments on commit 4b4920d

Please sign in to comment.