Check for error code in install script (#2)

这个提交包含在:
amdkila 编写, Edgar 于 2022-06-10 12:37:53 -04:00 提交
1 父节点 6156759a40
当前提交 3d6f70659a
1 个文件已更改
+9
+9
查看文件
@@ -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