File tree 2 files changed +54
-8
lines changed
2 files changed +54
-8
lines changed Original file line number Diff line number Diff line change @@ -33,19 +33,13 @@ jobs:
33
33
torch-spec : ' --pre torch==2.7.0.dev20250122 --index-url https://download.pytorch.org/whl/nightly/cpu'
34
34
gpu-arch-type : " cpu"
35
35
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
+
41
37
permissions :
42
38
id-token : write
43
39
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
45
41
with :
46
- enabled : ${{ matrix.gpu-arch-type != 'rocm' || (github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main')) }}
47
42
timeout : 120
48
- no-sudo : ${{ matrix.gpu-arch-type == 'rocm' }}
49
43
runner : ${{ matrix.runs-on }}
50
44
gpu-arch-type : ${{ matrix.gpu-arch-type }}
51
45
gpu-arch-version : ${{ matrix.gpu-arch-version }}
80
74
torch-spec : ' torch==2.5.1 --index-url https://download.pytorch.org/whl/cu121'
81
75
gpu-arch-type : " cuda"
82
76
gpu-arch-version : " 12.1"
77
+
83
78
- name : CPU 2.3
84
79
runs-on : linux.4xlarge
85
80
torch-spec : ' torch==2.3.0 --index-url https://download.pytorch.org/whl/cpu'
@@ -107,6 +102,8 @@ jobs:
107
102
conda create -n venv python=3.9 -y
108
103
conda activate venv
109
104
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
110
107
python -m pip install --upgrade pip
111
108
pip install ${{ matrix.torch-spec }}
112
109
pip install -r dev-requirements.txt
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments