Skip to content
Snippets Groups Projects
Commit 0a8561dc authored by Jan Ebert's avatar Jan Ebert
Browse files

Handle patch application fail better

parent c059af7a
Branches
No related tags found
No related merge requests found
......@@ -44,7 +44,10 @@ python -m pip install --upgrade pip
cd "$MEGATRON_DEEPSPEED_REPO"
((DO_PULL)) && git stash && git pull --rebase origin main && git stash pop || :
git am "$OLDPWD"/../0001-Build-fused-kernels-in-temporary-directory.patch \
|| echo 'WARNING: Could not apply patch for building in temp dir.'
|| (
git am --abort;
echo 'WARNING: Could not apply patch for building in temp dir.'
)
# Remove previous build if any.
rm -rf megatron/fused_kernels/build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment