Skip to content

Commit

Permalink
[Split Build][BE] consolidate pip install commands (#129253)
Browse files Browse the repository at this point in the history
Pull Request resolved: #129253
Approved by: https://github.com/atalman
ghstack dependencies: #129011
  • Loading branch information
PaliC authored and pytorchmergebot committed Jun 22, 2024
1 parent 7661d12 commit 64743de
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .circleci/scripts/binary_linux_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,10 @@ if [[ "$PACKAGE_TYPE" == conda ]]; then
elif [[ "$PACKAGE_TYPE" != libtorch ]]; then
if [[ "\$BUILD_ENVIRONMENT" != *s390x* ]]; then
if [[ "$USE_SPLIT_BUILD" == "true" ]]; then
pkg="$(ls -1 /final_pkgs/torch_no_python* | sort |tail -1)"
pkg_no_python="$(ls -1 /final_pkgs/torch_no_python* | sort |tail -1)"
pkg_torch="$(ls -1 /final_pkgs/torch-* | sort |tail -1)"
# todo: after folder is populated use the pypi_pkg channel instead
pip install "\$pkg" --index-url "https://download.pytorch.org/whl/\${CHANNEL}/${DESIRED_CUDA}_pypi_pkg"
retry pip install -q numpy protobuf typing-extensions
pkg="$(ls -1 /final_pkgs/torch-* | sort |tail -1)"
# todo: after folder is populated use the pypi_pkg channel instead
pip install "\$pkg" --index-url "https://download.pytorch.org/whl/\${CHANNEL}/${DESIRED_CUDA}_pypi_pkg"
pip install "\$pkg_no_python" "\$pkg_torch" --index-url "https://download.pytorch.org/whl/\${CHANNEL}/${DESIRED_CUDA}_pypi_pkg"
retry pip install -q numpy protobuf typing-extensions
else
pip install "\$pkg" --index-url "https://download.pytorch.org/whl/\${CHANNEL}/${DESIRED_CUDA}"
Expand Down

0 comments on commit 64743de

Please sign in to comment.