Check for error code in install script (#2)

[ROCm/rccl-tests commit: 3d6f70659a]
Dieser Commit ist enthalten in:
amdkila
2020-05-28 10:34:30 -06:00
committet von Edgar
Ursprung ab30a6bd32
Commit 652d1963af
+9
Datei anzeigen
@@ -67,6 +67,14 @@ while true; do
esac
done
# throw error code after running a command in the install script
check_exit_code( )
{
if (( $1 != 0 )); then
exit $1
fi
}
# Install the pre-commit hook
#bash ./githooks/install
@@ -87,6 +95,7 @@ if ($mpi_enabled); then
else
make NCCL_HOME=${rccl_dir} CUSTOM_RCCL_LIB=${rccl_dir}/lib/librccl.so -j$(nproc)
fi
check_exit_code "$?"
# Optionally, run tests if they're enabled.
if ($run_tests); then