From 7af07afb5a80b8ca9f331d66c5ed900b8627ae20 Mon Sep 17 00:00:00 2001 From: atalman Date: Mon, 17 Mar 2025 16:25:07 -0700 Subject: [PATCH 1/3] Fix Amazon Linux 2023 validation --- .github/workflows/validate-linux-binaries.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/validate-linux-binaries.yml b/.github/workflows/validate-linux-binaries.yml index 6e30d02483..53aab102e2 100644 --- a/.github/workflows/validate-linux-binaries.yml +++ b/.github/workflows/validate-linux-binaries.yml @@ -185,6 +185,9 @@ jobs: script: | set -ex python3 -m ensurepip --upgrade + # install Dev Tools in order to test torch.compile + dnf groupinstall -y "Development Tools" + CUDA_VERSION=$(python3 ../../test-infra/tools/scripts/get_stable_cuda_version.py --channel ${{ inputs.channel }}) CUDA_VERSION_NODOT=$(echo $CUDA_VERSION | tr -d '.') @@ -195,5 +198,6 @@ jobs: DWN_PYTORCH_ORG="https://download.pytorch.org/whl/cu${CUDA_VERSION_NODOT}" fi + python3 -m pip install numpy python3 -m pip install torch --index-url ${DWN_PYTORCH_ORG} python3 .ci/pytorch/smoke_test/smoke_test.py --package torchonly From c106bd0f06c1a43836b1e4232a39cd5b110baf16 Mon Sep 17 00:00:00 2001 From: Andrey Talman Date: Wed, 19 Mar 2025 16:47:50 -0700 Subject: [PATCH 2/3] Update .github/workflows/validate-linux-binaries.yml --- .github/workflows/validate-linux-binaries.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-linux-binaries.yml b/.github/workflows/validate-linux-binaries.yml index 53aab102e2..5597553a14 100644 --- a/.github/workflows/validate-linux-binaries.yml +++ b/.github/workflows/validate-linux-binaries.yml @@ -198,6 +198,6 @@ jobs: DWN_PYTORCH_ORG="https://download.pytorch.org/whl/cu${CUDA_VERSION_NODOT}" fi - python3 -m pip install numpy + python3 -m pip install setuptools wheel python-dev python3 -m pip install torch --index-url ${DWN_PYTORCH_ORG} python3 .ci/pytorch/smoke_test/smoke_test.py --package torchonly From 9b4e40764f0052d327dc7aac8400fe31bd3148c1 Mon Sep 17 00:00:00 2001 From: atalman Date: Thu, 20 Mar 2025 15:48:06 -0700 Subject: [PATCH 3/3] fix --- .github/workflows/validate-linux-binaries.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate-linux-binaries.yml b/.github/workflows/validate-linux-binaries.yml index 5597553a14..442ef33f7f 100644 --- a/.github/workflows/validate-linux-binaries.yml +++ b/.github/workflows/validate-linux-binaries.yml @@ -185,8 +185,9 @@ jobs: script: | set -ex python3 -m ensurepip --upgrade - # install Dev Tools in order to test torch.compile - dnf groupinstall -y "Development Tools" + # install Dev Tools and python-devel to test torch.compile + yum groupinstall -y "Development Tools" + yum install -y python-devel CUDA_VERSION=$(python3 ../../test-infra/tools/scripts/get_stable_cuda_version.py --channel ${{ inputs.channel }}) CUDA_VERSION_NODOT=$(echo $CUDA_VERSION | tr -d '.') @@ -198,6 +199,5 @@ jobs: DWN_PYTORCH_ORG="https://download.pytorch.org/whl/cu${CUDA_VERSION_NODOT}" fi - python3 -m pip install setuptools wheel python-dev python3 -m pip install torch --index-url ${DWN_PYTORCH_ORG} python3 .ci/pytorch/smoke_test/smoke_test.py --package torchonly