Skip to content

Commit 80711c5

Browse files
Add new regression_test_rocm.yml as per upstream recommendation
1 parent 61e86c2 commit 80711c5

File tree

2 files changed

+54
-8
lines changed

2 files changed

+54
-8
lines changed

.github/workflows/regression_test.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,13 @@ jobs:
3333
torch-spec: '--pre torch==2.7.0.dev20250122 --index-url https://download.pytorch.org/whl/nightly/cpu'
3434
gpu-arch-type: "cpu"
3535
gpu-arch-version: ""
36-
- name: ROCM Nightly
37-
runs-on: linux.rocm.gpu.torchao
38-
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/rocm6.3'
39-
gpu-arch-type: "rocm"
40-
gpu-arch-version: "6.3"
36+
4137
permissions:
4238
id-token: write
4339
contents: read
44-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@enable_linux_job_v2
40+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
4541
with:
46-
enabled: ${{ matrix.gpu-arch-type != 'rocm' || (github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main')) }}
4742
timeout: 120
48-
no-sudo: ${{ matrix.gpu-arch-type == 'rocm' }}
4943
runner: ${{ matrix.runs-on }}
5044
gpu-arch-type: ${{ matrix.gpu-arch-type }}
5145
gpu-arch-version: ${{ matrix.gpu-arch-version }}
@@ -80,6 +74,7 @@ jobs:
8074
torch-spec: 'torch==2.5.1 --index-url https://download.pytorch.org/whl/cu121'
8175
gpu-arch-type: "cuda"
8276
gpu-arch-version: "12.1"
77+
8378
- name: CPU 2.3
8479
runs-on: linux.4xlarge
8580
torch-spec: 'torch==2.3.0 --index-url https://download.pytorch.org/whl/cpu'
@@ -107,6 +102,8 @@ jobs:
107102
conda create -n venv python=3.9 -y
108103
conda activate venv
109104
echo "::group::Install newer objcopy that supports --set-section-alignment"
105+
yum install -y devtoolset-10-binutils
106+
export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
110107
python -m pip install --upgrade pip
111108
pip install ${{ matrix.torch-spec }}
112109
pip install -r dev-requirements.txt
+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Run Regression Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- ciflow/rocm/*
9+
10+
concurrency:
11+
group: regression_test-${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}
12+
cancel-in-progress: true
13+
14+
env:
15+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
16+
17+
jobs:
18+
test-nightly:
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
include:
23+
- name: ROCM Nightly
24+
runs-on: linux.rocm.gpu.torchao
25+
torch-spec: '--pre torch==2.7.0.dev20250122 --index-url https://download.pytorch.org/whl/nightly/rocm6.3'
26+
gpu-arch-type: "rocm"
27+
gpu-arch-version: "6.3"
28+
29+
permissions:
30+
id-token: write
31+
contents: read
32+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
33+
with:
34+
timeout: 120
35+
no-sudo: ${{ matrix.gpu-arch-type == 'rocm' }}
36+
runner: ${{ matrix.runs-on }}
37+
gpu-arch-type: ${{ matrix.gpu-arch-type }}
38+
gpu-arch-version: ${{ matrix.gpu-arch-version }}
39+
submodules: recursive
40+
script: |
41+
conda create -n venv python=3.9 -y
42+
conda activate venv
43+
python -m pip install --upgrade pip
44+
pip install ${{ matrix.torch-spec }}
45+
pip install -r dev-requirements.txt
46+
pip install .
47+
export CONDA=$(dirname $(dirname $(which conda)))
48+
export LD_LIBRARY_PATH=$CONDA/lib/:$LD_LIBRARY_PATH
49+
pytest test --verbose -s

0 commit comments

Comments
 (0)