File tree 2 files changed +11
-4
lines changed 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ concurrency:
17
17
env :
18
18
HF_TOKEN : ${{ secrets.HF_TOKEN }}
19
19
20
+ permissions :
21
+ id-token : write
22
+ contents : read
23
+
20
24
jobs :
21
25
test-nightly :
22
26
strategy :
@@ -33,13 +37,19 @@ jobs:
33
37
torch-spec : ' --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu'
34
38
gpu-arch-type : " cpu"
35
39
gpu-arch-version : " "
40
+ - name : ROCM Nightly
41
+ runs-on : linux.rocm.gpu.2
42
+ torch-spec : ' --pre torch --index-url https://download.pytorch.org/whl/nightly/rocm6.3'
43
+ gpu-arch-type : " rocm"
44
+ gpu-arch-version : " 6.3"
36
45
37
46
permissions :
38
47
id-token : write
39
48
contents : read
40
49
uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
41
50
with :
42
51
timeout : 120
52
+ no-sudo : ${{ matrix.gpu-arch-type == 'rocm' }}
43
53
runner : ${{ matrix.runs-on }}
44
54
gpu-arch-type : ${{ matrix.gpu-arch-type }}
45
55
gpu-arch-version : ${{ matrix.gpu-arch-version }}
74
84
torch-spec : ' torch==2.5.1 --index-url https://download.pytorch.org/whl/cu121'
75
85
gpu-arch-type : " cuda"
76
86
gpu-arch-version : " 12.1"
77
-
78
87
- name : CPU 2.3
79
88
runs-on : linux.4xlarge
80
89
torch-spec : ' torch==2.3.0 --index-url https://download.pytorch.org/whl/cpu'
@@ -102,8 +111,6 @@ jobs:
102
111
conda create -n venv python=3.9 -y
103
112
conda activate venv
104
113
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
107
114
python -m pip install --upgrade pip
108
115
pip install ${{ matrix.torch-spec }}
109
116
pip install -r dev-requirements.txt
Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ def _torch_version_at_least(min_version):
635
635
def is_MI300 ():
636
636
if torch .cuda .is_available () and torch .version .hip :
637
637
mxArchName = ["gfx940" , "gfx941" , "gfx942" ]
638
- archName = torch .cuda .get_device_properties ().gcnArchName
638
+ archName = torch .cuda .get_device_properties (0 ).gcnArchName
639
639
for arch in mxArchName :
640
640
if arch in archName :
641
641
return True
You can’t perform that action at this time.
0 commit comments