Skip to content

Commit 66cf0aa

Browse files
committed
update compute platform only if main has updates
1 parent 80b03f6 commit 66cf0aa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

update-pytorch.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ function checkCount() {
5555
# update main PyTorch index, that contains everything, whatever the compute platform
5656
updateIndex "whl"
5757

58+
# see resulting updates
59+
git update-index -q --refresh
60+
git diff-index --name-status HEAD
61+
62+
if `git diff-index --quiet HEAD`
63+
then
64+
echo "no update found in PyTorch main index."
65+
exit 0
66+
fi
67+
echo "updates found in PyTorch main index: updating also compute platform specific ones..."
68+
5869
# update compute-platform specific indexes
5970
# ignore old non-updated ones:
6071
# - cu75 cu80 cu90 cu91 cu92 cu100 cu101 cu102 cu110 cu111 cu113 cu115 cu116 cu117 cu117_pypi_cudnn

0 commit comments

Comments
 (0)