4444 # manylinux docker image, but I haven't figured out how to install CUDA on manylinux.
4545 os : [ubuntu-20.04]
4646 python-version : ['3.7', '3.8', '3.9', '3.10', '3.11']
47- torch-version : ['1.12.1', '1.13.1', '2.0.1', '2.1.0.dev20230731 ']
47+ torch-version : ['1.12.1', '1.13.1', '2.0.1', '2.1.0']
4848 cuda-version : ['11.6.2', '11.7.1', '11.8.0', '12.1.0', '12.2.0']
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.
5858 # Pytorch >= 2.0 only supports Python >= 3.8
5959 - torch-version : ' 2.0.1'
6060 python-version : ' 3.7'
61- - torch-version : ' 2.1.0.dev20230731 '
61+ - torch-version : ' 2.1.0'
6262 python-version : ' 3.7'
6363 # Pytorch <= 2.0 only supports CUDA <= 11.8
6464 - torch-version : ' 1.12.1'
@@ -73,17 +73,15 @@ jobs:
7373 cuda-version : ' 12.1.0'
7474 - torch-version : ' 2.0.1'
7575 cuda-version : ' 12.2.0'
76- # Pytorch >= 2.1 only supports CUDA >= 12.1
77- - torch-version : ' 2.1.0.dev20230731 '
76+ # Pytorch >= 2.1 only supports CUDA >= 11.8
77+ - torch-version : ' 2.1.0'
7878 cuda-version : ' 11.6.2'
79- - torch-version : ' 2.1.0.dev20230731 '
79+ - torch-version : ' 2.1.0'
8080 cuda-version : ' 11.7.1'
81- - torch-version : ' 2.1.0.dev20230731'
82- cuda-version : ' 11.8.0'
8381 # Pytorch >= 2.1 with nvcc 12.1.0 segfaults during compilation, so
8482 # we only use CUDA 12.2. setup.py as a special case that will
8583 # download the wheel for CUDA 12.2 instead.
86- - torch-version : ' 2.1.0.dev20230731 '
84+ - torch-version : ' 2.1.0'
8785 cuda-version : ' 12.1.0'
8886
8987 steps :
@@ -132,7 +130,7 @@ jobs:
132130 # We want to figure out the CUDA version to download pytorch
133131 # 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
134132 # This code is ugly, maybe there's a better way to do this.
135- export TORCH_CUDA_VERSION=$(python -c "import os; minv = {'1.12': 113, '1.13': 116, '2.0': 117, '2.1': 121 }[os.environ['MATRIX_TORCH_VERSION']]; maxv = {'1.12': 116, '1.13': 117, '2.0': 118, '2.1': 121}[os.environ['MATRIX_TORCH_VERSION']]; print(max(min(int(os.environ['MATRIX_CUDA_VERSION']), maxv), minv))")
133+ export TORCH_CUDA_VERSION=$(python -c "import os; minv = {'1.12': 113, '1.13': 116, '2.0': 117, '2.1': 118 }[os.environ['MATRIX_TORCH_VERSION']]; maxv = {'1.12': 116, '1.13': 117, '2.0': 118, '2.1': 121}[os.environ['MATRIX_TORCH_VERSION']]; print(max(min(int(os.environ['MATRIX_CUDA_VERSION']), maxv), minv))")
136134 if [[ ${{ matrix.torch-version }} == *"dev"* ]]; then
137135 pip install --no-cache-dir --pre torch==${{ matrix.torch-version }} --index-url https://download.pytorch.org/whl/nightly/cu${TORCH_CUDA_VERSION}
138136 else
0 commit comments