@@ -40,29 +40,19 @@ jobs:
40
40
strategy :
41
41
fail-fast : false
42
42
matrix :
43
- # Using ubuntu-20 .04 instead of 22 .04 for more compatibility (glibc). Ideally we'd use the
43
+ # Using ubuntu-22 .04 instead of 24 .04 for more compatibility (glibc). Ideally we'd use the
44
44
# manylinux docker image, but I haven't figured out how to install CUDA on manylinux.
45
- os : [ubuntu-20 .04]
45
+ os : [ubuntu-22 .04]
46
46
python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
47
- torch-version : ['2.1.2 ', '2.2.2', '2.3. 1', '2.4 .0', '2.5.1', '2.6.0.dev20241001 ']
48
- cuda-version : ['11.8.0', '12.3.2 ']
47
+ torch-version : ['2.4.0 ', '2.5. 1', '2.6 .0', '2.7.1 ']
48
+ cuda-version : ['11.8.0', '12.9.1 ']
49
49
# We need separate wheels that either uses C++11 ABI (-D_GLIBCXX_USE_CXX11_ABI) or not.
50
50
# Pytorch wheels currently don't use it, but nvcr images have Pytorch compiled with C++11 ABI.
51
51
# Without this we get import error (undefined symbol: _ZN3c105ErrorC2ENS_14SourceLocationESs)
52
52
# when building without C++11 ABI and using it on nvcr images.
53
53
cxx11_abi : ['FALSE', 'TRUE']
54
54
exclude :
55
55
# see https://github.com/pytorch/pytorch/blob/main/RELEASE.md#release-compatibility-matrix
56
- # Pytorch < 2.2 does not support Python 3.12
57
- - torch-version : ' 2.1.2'
58
- python-version : ' 3.12'
59
- # Pytorch < 2.5 does not support Python 3.13
60
- - torch-version : ' 2.1.2'
61
- python-version : ' 3.13'
62
- - torch-version : ' 2.2.2'
63
- python-version : ' 3.13'
64
- - torch-version : ' 2.3.1'
65
- python-version : ' 3.13'
66
56
- torch-version : ' 2.4.0'
67
57
python-version : ' 3.13'
68
58
99
89
100
90
- name : Install CUDA ${{ matrix.cuda-version }}
101
91
if : ${{ matrix.cuda-version != 'cpu' }}
102
- uses : Jimver/cuda-toolkit@v0.2.19
92
+ uses : Jimver/cuda-toolkit@v0.2.26
103
93
id : cuda-toolkit
104
94
with :
105
95
cuda : ${{ matrix.cuda-version }}
@@ -121,8 +111,8 @@ jobs:
121
111
# e.g. we can have system CUDA version being 11.7 but if torch==1.12 then we need to download the wheel from cu116
122
112
# This code is ugly, maybe there's a better way to do this.
123
113
export TORCH_CUDA_VERSION=$(python -c "from os import environ as env; \
124
- minv = {'2.1 ': 118, '2.2 ': 118, '2.3 ': 118, '2.4': 118, '2.5': 118, '2.6 ': 118}[env['MATRIX_TORCH_VERSION']]; \
125
- maxv = {'2.1 ': 121 , '2.2 ': 121, '2.3': 121, '2.4': 124, '2.5 ': 124 , '2.6 ': 124 }[env['MATRIX_TORCH_VERSION']]; \
114
+ minv = {'2.4 ': 118, '2.5 ': 118, '2.6 ': 118, '2.7 ': 118}[env['MATRIX_TORCH_VERSION']]; \
115
+ maxv = {'2.4 ': 124 , '2.5 ': 124, '2.6 ': 126 , '2.7 ': 128 }[env['MATRIX_TORCH_VERSION']]; \
126
116
print(minv if int(env['MATRIX_CUDA_VERSION']) < 120 else maxv)" \
127
117
)
128
118
if [[ ${{ matrix.torch-version }} == *"dev"* ]]; then
0 commit comments