From b07f714782117947e3bcd5d2a866696bd5075f6a Mon Sep 17 00:00:00 2001 From: andrewor14 Date: Fri, 17 Jan 2025 14:06:19 -0500 Subject: [PATCH] Revert "Enable ROCM in CI (#999)" This reverts commit d96c6a79adcf1f4fa127b0cd7f762921bb951c8a. --- .github/workflows/regression_test.yml | 13 +++---------- torchao/utils.py | 2 +- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/regression_test.yml b/.github/workflows/regression_test.yml index eaf2e3cbbb..74b39d2ef2 100644 --- a/.github/workflows/regression_test.yml +++ b/.github/workflows/regression_test.yml @@ -17,10 +17,6 @@ concurrency: env: HF_TOKEN: ${{ secrets.HF_TOKEN }} -permissions: - id-token: write - contents: read - jobs: test-nightly: strategy: @@ -37,16 +33,10 @@ jobs: torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cpu' gpu-arch-type: "cpu" gpu-arch-version: "" - - name: ROCM Nightly - runs-on: linux.rocm.gpu.2 - torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/rocm6.3' - gpu-arch-type: "rocm" - gpu-arch-version: "6.3" uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main with: timeout: 120 - no-sudo: ${{ matrix.gpu-arch-type == 'rocm' }} runner: ${{ matrix.runs-on }} gpu-arch-type: ${{ matrix.gpu-arch-type }} gpu-arch-version: ${{ matrix.gpu-arch-version }} @@ -81,6 +71,7 @@ jobs: torch-spec: 'torch==2.5.1 --index-url https://download.pytorch.org/whl/cu121' gpu-arch-type: "cuda" gpu-arch-version: "12.1" + - name: CPU 2.3 runs-on: linux.4xlarge torch-spec: 'torch==2.3.0 --index-url https://download.pytorch.org/whl/cpu' @@ -108,6 +99,8 @@ jobs: conda create -n venv python=3.9 -y conda activate venv echo "::group::Install newer objcopy that supports --set-section-alignment" + yum install -y devtoolset-10-binutils + export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH python -m pip install --upgrade pip pip install ${{ matrix.torch-spec }} pip install -r dev-requirements.txt diff --git a/torchao/utils.py b/torchao/utils.py index 4729675a14..7a17c1b104 100644 --- a/torchao/utils.py +++ b/torchao/utils.py @@ -607,7 +607,7 @@ def _torch_version_at_least(min_version): def is_MI300(): if torch.cuda.is_available() and torch.version.hip: mxArchName = ["gfx940", "gfx941", "gfx942"] - archName = torch.cuda.get_device_properties(0).gcnArchName + archName = torch.cuda.get_device_properties().gcnArchName for arch in mxArchName: if arch in archName: return True