Skip to content

Commit 8ffd0f9

Browse files
driazatiYour Name
and
Your Name
authored
Parallelize submodule fetches (#690)
This makes all `git submodule update`s on Mac/Linux parallel using `--jobs 0`, which uses ["some reasonable default"](https://git-scm.com/docs/git-config#Documentation/git-config.txt-submodulefetchJobs). Co-authored-by: Your Name <[email protected]>
1 parent a4c8821 commit 8ffd0f9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

conda/build_pytorch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ if [[ ! -d "$pytorch_rootdir" ]]; then
182182
popd
183183
fi
184184
pushd "$pytorch_rootdir"
185-
git submodule update --init --recursive
185+
git submodule update --init --recursive --jobs 0
186186
echo "Using Pytorch from "
187187
git --no-pager log --max-count 1
188188
popd

cron/nightly_defaults.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ if [[ ! -d "$NIGHTLIES_PYTORCH_ROOT" ]]; then
120120
export PYTORCH_BRANCH="$last_commit"
121121
fi
122122
git checkout "$PYTORCH_BRANCH"
123-
git submodule update
123+
git submodule update --jobs 0
124124
popd
125125
fi
126126

manywheel/build_common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [[ ! -d "$pytorch_rootdir" ]]; then
9595
else
9696
pushd $pytorch_rootdir
9797
fi
98-
git submodule update --init --recursive
98+
git submodule update --init --recursive --jobs 0
9999

100100
export PATCHELF_BIN=/usr/local/bin/patchelf
101101
patchelf_version=`$PATCHELF_BIN --version`

manywheel/build_libtorch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ else
8181
pushd $pytorch_rootdir
8282
fi
8383
pushd $pytorch_rootdir
84-
git submodule update --init --recursive
84+
git submodule update --init --recursive --jobs 0
8585

8686
export PATCHELF_BIN=/usr/local/bin/patchelf
8787
patchelf_version=`$PATCHELF_BIN --version`

wheel/build_wheel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ if [[ ! -d "$pytorch_rootdir" ]]; then
123123
popd
124124
fi
125125
pushd "$pytorch_rootdir"
126-
git submodule update --init --recursive
126+
git submodule update --init --recursive --jobs 0
127127
popd
128128

129129
##########################

0 commit comments

Comments
 (0)