|
43 | 43 | # Using ubuntu-20.04 instead of 22.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 | 45 | os: [ubuntu-20.04]
|
46 |
| - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
| 46 | + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] |
47 | 47 | torch-version: ['1.12.1', '1.13.1', '2.0.1', '2.1.2', '2.2.0']
|
48 | 48 | cuda-version: ['11.8.0', '12.2.2']
|
49 | 49 | # We need separate wheels that either uses C++11 ABI (-D_GLIBCXX_USE_CXX11_ABI) or not.
|
|
52 | 52 | # when building without C++11 ABI and using it on nvcr images.
|
53 | 53 | cxx11_abi: ['FALSE', 'TRUE']
|
54 | 54 | exclude:
|
| 55 | + # Pytorch < 2.2 does not support Python 3.12 |
| 56 | + - torch-version: '1.12.1' |
| 57 | + python-version: '3.12' |
| 58 | + - torch-version: '1.13.1' |
| 59 | + python-version: '3.12' |
| 60 | + - torch-version: '2.0.1' |
| 61 | + python-version: '3.12' |
| 62 | + - torch-version: '2.1.2' |
| 63 | + python-version: '3.12' |
55 | 64 | # Pytorch <= 1.12 does not support Python 3.11
|
56 | 65 | - torch-version: '1.12.1'
|
57 | 66 | python-version: '3.11'
|
@@ -119,6 +128,8 @@ jobs:
|
119 | 128 | # If we don't install before installing Pytorch, we get error for torch 2.0.1
|
120 | 129 | # ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
|
121 | 130 | pip install lit
|
| 131 | + # For some reason torch 2.2.0 on python 3.12 errors saying no setuptools |
| 132 | + pip install setuptools |
122 | 133 | # We want to figure out the CUDA version to download pytorch
|
123 | 134 | # 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
|
124 | 135 | # This code is ugly, maybe there's a better way to do this.
|
|
0 commit comments