@@ -40,29 +40,19 @@ jobs:
4040 strategy :
4141 fail-fast : false
4242 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
4444 # 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]
4646 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 ']
4949 # We need separate wheels that either uses C++11 ABI (-D_GLIBCXX_USE_CXX11_ABI) or not.
5050 # Pytorch wheels currently don't use it, but nvcr images have Pytorch compiled with C++11 ABI.
5151 # Without this we get import error (undefined symbol: _ZN3c105ErrorC2ENS_14SourceLocationESs)
5252 # when building without C++11 ABI and using it on nvcr images.
5353 cxx11_abi : ['FALSE', 'TRUE']
5454 exclude :
5555 # 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'
6656 - torch-version : ' 2.4.0'
6757 python-version : ' 3.13'
6858
9989
10090 - name : Install CUDA ${{ matrix.cuda-version }}
10191 if : ${{ matrix.cuda-version != 'cpu' }}
102- 92+ 10393 id : cuda-toolkit
10494 with :
10595 cuda : ${{ matrix.cuda-version }}
@@ -121,8 +111,8 @@ jobs:
121111 # 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
122112 # This code is ugly, maybe there's a better way to do this.
123113 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']]; \
126116 print(minv if int(env['MATRIX_CUDA_VERSION']) < 120 else maxv)" \
127117 )
128118 if [[ ${{ matrix.torch-version }} == *"dev"* ]]; then
0 commit comments