From 078dca1ce8093d78b21b4376d1938c600d1739d1 Mon Sep 17 00:00:00 2001 From: atalman Date: Tue, 22 Oct 2024 19:04:19 +0000 Subject: [PATCH] Aarch64 binary builds - fix passing env_file to Docker (#138588) Aarch64 builds skipped the logic of sourcing binary env file. And as a result PYTORCH_EXTRA_INSTALL_REQUIREMENTS passed to Aarch64 builds have not included triton dependency constraint. This PR makes sure Aarch64 builds follow same path as our regular manywheel builds. To work around this issue we had to inject triton in aarrch64 builds for release 2.5, which is not ideal: https://github.com/pytorch/builder/pull/2011 Pull Request resolved: https://github.com/pytorch/pytorch/pull/138588 Approved by: https://github.com/jeanschmidt, https://github.com/malfet --- .circleci/scripts/binary_populate_env.sh | 8 +++++++- .github/workflows/_binary-build-linux.yml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.circleci/scripts/binary_populate_env.sh b/.circleci/scripts/binary_populate_env.sh index 106d0917ca68..046dc7ef9b1e 100755 --- a/.circleci/scripts/binary_populate_env.sh +++ b/.circleci/scripts/binary_populate_env.sh @@ -114,6 +114,12 @@ if [[ "$PACKAGE_TYPE" =~ .*wheel.* && -n "$PYTORCH_BUILD_VERSION" && "$PYTORCH_B fi fi +USE_GLOO_WITH_OPENSSL="ON" +if [[ "$GPU_ARCH_TYPE" =~ .*aarch64.* ]]; then + USE_GLOO_WITH_OPENSSL="OFF" + USE_GOLD_LINKER="OFF" +fi + cat >"$envfile" <