Skip to content

Commit cf32e2d

Browse files
authored
Support torch 1.10.x (#914)
* Support torch 1.10.x * Fix installing PyTorch.
1 parent 47c4b75 commit cf32e2d

File tree

6 files changed

+34
-18
lines changed

6 files changed

+34
-18
lines changed

.github/workflows/build-cpu.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
fail-fast: false
3737
matrix:
3838
os: [ubuntu-18.04, macos-10.15]
39-
torch: ["1.5.0", "1.5.1", "1.6.0", "1.7.0", "1.7.1", "1.8.0", "1.8.1", "1.9.0", "1.9.1", "1.10"]
40-
# Python 3.9 is for PyTorch 1.7.1, 1.8.x, 1.9.x, 1.10
39+
torch: ["1.5.0", "1.5.1", "1.6.0", "1.7.0", "1.7.1", "1.8.0", "1.8.1", "1.9.0", "1.9.1", "1.10.0", "1.10.1", "1.10.2"]
40+
# Python 3.9 is for PyTorch 1.7.1, 1.8.x, 1.9.x, 1.10.x
4141
python-version: [3.6, 3.7, 3.8, 3.9]
4242
exclude:
4343
- python-version: 3.9 # exclude Python 3.9 for [1.5.0, 1.5.1, 1.6.0, 1.7.0]

.github/workflows/build.yml

+15-7
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
# from https://download.pytorch.org/whl/torch_stable.html
4040
# Note: There are no torch versions for CUDA 11.2
4141
#
42-
# 1.10 supports: cuda10.2 (default), 11.1, 11.3
42+
# 1.10.x supports: cuda10.2 (default), 11.1, 11.3
4343
# 1.9.x supports: cuda10.2 (default), 11.1
4444
# PyTorch 1.8.x supports: cuda 10.1, 10.2 (default), 11.1
4545
# PyTorch 1.7.x supports: cuda 10.1, 10.2 (default), 11.0
@@ -49,9 +49,9 @@ jobs:
4949
# CUDA 11.3 is for torch 1.10
5050
cuda: ["10.1", "10.2", "11.0", "11.1", "11.3"]
5151
gcc: ["7"]
52-
torch: ["1.5.0", "1.5.1", "1.6.0", "1.7.0", "1.7.1", "1.8.0", "1.8.1", "1.9.0", "1.9.1", "1.10"]
52+
torch: ["1.5.0", "1.5.1", "1.6.0", "1.7.0", "1.7.1", "1.8.0", "1.8.1", "1.9.0", "1.9.1", "1.10.0", "1.10.1", "1.10.2"]
5353
#
54-
# Python 3.9 is for PyTorch 1.7.1, 1.8.0, 1.8.1, 1.9.x, 1.10
54+
# Python 3.9 is for PyTorch 1.7.1, 1.8.0, 1.8.1, 1.9.x, 1.10.x
5555
python-version: [3.6, 3.7, 3.8, 3.9]
5656
exclude:
5757
- cuda: "11.3" # exclude 11.3 for [1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1]
@@ -72,7 +72,7 @@ jobs:
7272
torch: "1.9.0"
7373
- cuda: "11.3"
7474
torch: "1.9.1"
75-
- cuda: "11.0" # exclude 11.0 for [1.5.0, 1.5.1, 1.6.0, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10]
75+
- cuda: "11.0" # exclude 11.0 for [1.5.0, 1.5.1, 1.6.0, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2]
7676
torch: "1.5.0"
7777
- cuda: "11.0"
7878
torch: "1.5.1"
@@ -87,7 +87,11 @@ jobs:
8787
- cuda: "11.0"
8888
torch: "1.9.1"
8989
- cuda: "11.0"
90-
torch: "1.10"
90+
torch: "1.10.0"
91+
- cuda: "11.0"
92+
torch: "1.10.1"
93+
- cuda: "11.0"
94+
torch: "1.10.2"
9195
- cuda: "11.1" # exclude 11.1 for [1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1]
9296
torch: "1.5.0"
9397
- cuda: "11.1"
@@ -98,12 +102,16 @@ jobs:
98102
torch: "1.7.0"
99103
- cuda: "11.1"
100104
torch: "1.7.1"
101-
- cuda: "10.1" # exclude CUDA 10.1 for [1.9.0, 1.9.1, 1.10]
105+
- cuda: "10.1" # exclude CUDA 10.1 for [1.9.0, 1.9.1, 1.10.0, 10.1, 10.2]
102106
torch: "1.9.0"
103107
- cuda: "10.1"
104108
torch: "1.9.1"
105109
- cuda: "10.1"
106-
torch: "1.10"
110+
torch: "1.10.0"
111+
- cuda: "10.1"
112+
torch: "1.10.1"
113+
- cuda: "10.1"
114+
torch: "1.10.2"
107115
- python-version: 3.9 # exclude Python 3.9 for [1.5.0, 1.5.1, 1.6.0, 1.7.0]
108116
torch: "1.5.0"
109117
- python-version: 3.9

.github/workflows/build_conda.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
cuda: ["10.1", "10.2", "11.0", "11.1", "11.3"]
3838
# from https://download.pytorch.org/whl/torch_stable.html
3939
#
40-
# PyTorch 1.10 supports: 10.2 (default), 11.1, 11.3
40+
# PyTorch 1.10.x supports: 10.2 (default), 11.1, 11.3
4141
# PyTorch 1.9.x supports: 10.2 (default), 11.1
4242
# PyTorch 1.8.1 supports: cuda 10.1, 10.2 (default), 11.1
4343
# PyTorch 1.8.0 supports: cuda 10.1, 10.2 (default), 11.1
@@ -56,9 +56,9 @@ jobs:
5656
# https://github.com/csukuangfj/k2/runs/2533830771?check_suite_focus=true
5757
# and
5858
# https://github.com/NVIDIA/apex/issues/805
59-
torch: ["1.6.0", "1.7.0", "1.7.1", "1.8.0", "1.8.1", "1.9.0", "1.9.1", "1.10"]
59+
torch: ["1.6.0", "1.7.0", "1.7.1", "1.8.0", "1.8.1", "1.9.0", "1.9.1", "1.10.0", "1.10.1", "1.10.2"]
6060
exclude:
61-
# - cuda: "11.0" # exclude 11.0 for [1.5.0, 1.5.1, 1.6.0, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10]
61+
# - cuda: "11.0" # exclude 11.0 for [1.5.0, 1.5.1, 1.6.0, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2]
6262
# torch: "1.5.0"
6363
# - cuda: "11.0"
6464
# torch: "1.5.1"
@@ -73,7 +73,11 @@ jobs:
7373
- cuda: "11.0"
7474
torch: "1.9.1"
7575
- cuda: "11.0"
76-
torch: "1.10"
76+
torch: "1.10.0"
77+
- cuda: "11.0"
78+
torch: "1.10.1"
79+
- cuda: "11.0"
80+
torch: "1.10.2"
7781
# - cuda: "11.1" # exclude 11.1 for [1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1]
7882
# torch: "1.5.0"
7983
# - cuda: "11.1"
@@ -84,12 +88,16 @@ jobs:
8488
torch: "1.7.0"
8589
- cuda: "11.1"
8690
torch: "1.7.1"
87-
- cuda: "10.1" # exclude 10.1 for [1.9.0, 1.9.1, 1.10]
91+
- cuda: "10.1" # exclude 10.1 for [1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2]
8892
torch: "1.9.0"
8993
- cuda: "10.1"
9094
torch: "1.9.1"
9195
- cuda: "10.1"
92-
torch: "1.10"
96+
torch: "1.10.0"
97+
- cuda: "10.1"
98+
torch: "1.10.1"
99+
- cuda: "10.1"
100+
torch: "1.10.2"
93101
- python-version: 3.9 # exclude Python 3.9 for [1.5.0, 1.5.1, 1.6.0, 1.7.0]
94102
torch: "1.5.0"
95103
- python-version: 3.9

.github/workflows/build_conda_cpu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
#
5252
# Other PyTorch versions are not tested
5353
#
54-
torch: ["1.5.0", "1.5.1", "1.6.0", "1.7.0", "1.7.1", "1.8.0", "1.8.1", "1.9.0", "1.9.1", "1.10"]
54+
torch: ["1.5.0", "1.5.1", "1.6.0", "1.7.0", "1.7.1", "1.8.0", "1.8.1", "1.9.0", "1.9.1", "1.10.0", "1.10.1", "1.10.2"]
5555
exclude:
5656
- python-version: 3.9 # exclude Python 3.9 for [1.5.0, 1.5.1, 1.6.0, 1.7.0]
5757
torch: "1.5.0"

.github/workflows/nightly-cpu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
os: [ubuntu-18.04, macos-10.15]
4242
# Python 3.9 is for PyTorch 1.7.1, 1.8.x, 1.9.x, 1.10
4343
python-version: [3.6, 3.7, 3.8, 3.9]
44-
torch: ["1.4.0", "1.5.0", "1.5.1", "1.6.0", "1.7.0", "1.7.1", "1.8.0", "1.8.1", "1.9.0", "1.9.1", "1.10"]
44+
torch: ["1.4.0", "1.5.0", "1.5.1", "1.6.0", "1.7.0", "1.7.1", "1.8.0", "1.8.1", "1.9.0", "1.9.1", "1.10.0", "1.10.1", "1.10.2"]
4545
exclude:
4646
- python-version: 3.9 # exclude Python 3.9 for [1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0]
4747
torch: "1.4.0"

scripts/github_actions/install_torch.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ case ${torch} in
9191
;;
9292
esac
9393
;;
94-
1.10)
94+
1.10.*)
9595
case ${cuda} in
9696
10.2)
9797
package="torch==${torch}"

0 commit comments

Comments
 (0)