From 03472bd525c72f1d4982729040cb8d94741d9acb Mon Sep 17 00:00:00 2001 From: Mergen Nachin Date: Mon, 8 Sep 2025 12:18:47 -0400 Subject: [PATCH] Remove duplicate libatomic installation check Removed duplicate installation of libatomic for aarch64. --- .ci/scripts/wheel/pre_build_script.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.ci/scripts/wheel/pre_build_script.sh b/.ci/scripts/wheel/pre_build_script.sh index e49b3f715b6..f954441aae8 100755 --- a/.ci/scripts/wheel/pre_build_script.sh +++ b/.ci/scripts/wheel/pre_build_script.sh @@ -9,14 +9,14 @@ set -euxo pipefail # This script is run before building ExecuTorch binaries +# On aarch64, we need to install libatomic explicitly for meta-pytorch/tokenizers to work. +if [[ "$(uname -m)" == "aarch64" ]]; then + sudo dnf install -y libatomic +fi + # Manually install build requirements because `python setup.py bdist_wheel` does # not install them. TODO(dbort): Switch to using `python -m build --wheel`, # which does install them. Though we'd need to disable build isolation to be # able to see the installed torch package. "${GITHUB_WORKSPACE}/${REPOSITORY}/install_requirements.sh" --example - -# On aarch64, we need to install libatomic explicitly for meta-pytorch/tokenizers to work. -if [[ "$(uname -m)" == "aarch64" ]]; then - sudo dnf install -y libatomic -fi