Skip to content

Commit b09990e

Browse files
authored
Pytorch 11.3 support (#5975)
1 parent 0b3f8e9 commit b09990e

File tree

16 files changed

+105
-89
lines changed

16 files changed

+105
-89
lines changed

.github/workflows/building_pyg_conda.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,26 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
os: [ubuntu-18.04, macos-10.15, windows-2019]
13+
# We have trouble building for Windows - drop for now.
14+
os: [ubuntu-18.04, macos-10.15] # windows-2019
1415
python-version: ['3.7', '3.8', '3.9', '3.10']
15-
torch-version: [1.11.0, 1.12.0]
16-
cuda-version: ['cpu', 'cu102', 'cu113', 'cu115', 'cu116']
16+
torch-version: [1.13.0] # [1.12.0, 1.13.0]
17+
cuda-version: ['cpu', 'cu102', 'cu113', 'cu116', 'cu117']
1718
exclude:
18-
- torch-version: 1.11.0
19-
cuda-version: 'cu116'
2019
- torch-version: 1.12.0
21-
cuda-version: 'cu115'
20+
cuda-version: 'cu117'
21+
- torch-version: 1.13.0
22+
cuda-version: 'cu102'
23+
- torch-version: 1.13.0
24+
cuda-version: 'cu113'
2225
- os: macos-10.15
2326
cuda-version: 'cu102'
2427
- os: macos-10.15
2528
cuda-version: 'cu113'
26-
- os: macos-10.15
27-
cuda-version: 'cu115'
2829
- os: macos-10.15
2930
cuda-version: 'cu116'
31+
- os: macos-10.15
32+
cuda-version: 'cu117'
3033
- os: windows-2019
3134
cuda-version: 'cu102'
3235
- os: windows-2019 # Complains about CUDA mismatch.

.github/workflows/building_rusty1s_conda.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,26 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
os: [ubuntu-18.04, macos-10.15, windows-2019]
13+
# We have trouble building for Windows - drop for now.
14+
os: [ubuntu-18.04, macos-10.15] # windows-2019
1415
python-version: ['3.7', '3.8', '3.9', '3.10']
15-
torch-version: [1.11.0, 1.12.0]
16-
cuda-version: ['cpu', 'cu102', 'cu113', 'cu115', 'cu116']
16+
torch-version: [1.13.0] # [1.12.0, 1.13.0]
17+
cuda-version: ['cpu', 'cu102', 'cu113', 'cu116', 'cu117']
1718
exclude:
18-
- torch-version: 1.11.0
19-
cuda-version: 'cu116'
2019
- torch-version: 1.12.0
21-
cuda-version: 'cu115'
20+
cuda-version: 'cu117'
21+
- torch-version: 1.13.0
22+
cuda-version: 'cu102'
23+
- torch-version: 1.13.0
24+
cuda-version: 'cu113'
2225
- os: macos-10.15
2326
cuda-version: 'cu102'
2427
- os: macos-10.15
2528
cuda-version: 'cu113'
26-
- os: macos-10.15
27-
cuda-version: 'cu115'
2829
- os: macos-10.15
2930
cuda-version: 'cu116'
31+
- os: macos-10.15
32+
cuda-version: 'cu117'
3033
- os: windows-2019
3134
cuda-version: 'cu102'
3235
- os: windows-2019 # Complains about CUDA mismatch.

.github/workflows/documentation.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616
os: [ubuntu-latest]
1717
python-version: [3.8]
18-
torch-version: [1.12.0]
18+
torch-version: [1.13.0]
1919

2020
steps:
2121
- uses: actions/checkout@v3
@@ -26,8 +26,7 @@ jobs:
2626

2727
- name: Install PyTorch ${{ matrix.torch-version }}+cpu
2828
run: |
29-
pip install numpy typing-extensions dataclasses
30-
pip install torch==${{ matrix.torch-version}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
29+
pip install torch==${{ matrix.torch-version }} --extra-index-url https://download.pytorch.org/whl/cpu
3130
3231
- name: Install internal dependencies
3332
run: |

.github/workflows/examples.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ jobs:
1616
matrix:
1717
os: [ubuntu-latest]
1818
python-version: [3.9]
19-
torch-version: [1.12.0]
20-
include:
21-
- torch-version: 1.12.0
22-
torchvision-version: 0.13.0
19+
torch-version: [1.13.0]
2320

2421
steps:
2522
- uses: actions/checkout@v3
@@ -30,8 +27,7 @@ jobs:
3027

3128
- name: Install PyTorch ${{ matrix.torch-version }}+cpu
3229
run: |
33-
pip install numpy typing-extensions dataclasses
34-
pip install torch==${{ matrix.torch-version}}+cpu torchvision==${{ matrix.torchvision-version}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
30+
pip install torch==${{ matrix.torch-version }} --extra-index-url https://download.pytorch.org/whl/cpu
3531
3632
- name: Install internal dependencies
3733
run: |

.github/workflows/full_testing.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ jobs:
1616
matrix:
1717
os: [ubuntu-latest, windows-latest]
1818
python-version: ['3.7', '3.8', '3.9', '3.10']
19-
torch-version: [1.12.0]
19+
torch-version: [1.13.0]
2020
include:
21-
- torch-version: 1.12.0
22-
torchvision-version: 0.13.0
21+
- torch-version: 1.13.0
22+
torchvision-version: 0.14.0
2323
exclude:
2424
- os: windows-latest # Complains about CUDA mismatch.
2525
python-version: '3.7'
26-
- os: windows-latest # Complains about missing numpy package.
27-
python-version: '3.10'
2826

2927
steps:
3028
- uses: actions/checkout@v3
@@ -35,8 +33,7 @@ jobs:
3533

3634
- name: Install PyTorch ${{ matrix.torch-version }}+cpu
3735
run: |
38-
pip install numpy typing-extensions dataclasses
39-
pip install torch==${{ matrix.torch-version}}+cpu torchvision==${{ matrix.torchvision-version}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
36+
pip install torch==${{ matrix.torch-version }} torchvision==${{ matrix.torchvision-version}} --extra-index-url https://download.pytorch.org/whl/cpu
4037
4138
- name: Install internal dependencies
4239
run: |

.github/workflows/install.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616
os: [ubuntu-latest]
1717
python-version: [3.9]
18-
torch-version: [1.12.0]
18+
torch-version: [1.13.0]
1919

2020
steps:
2121
- uses: actions/checkout@v3
@@ -26,8 +26,7 @@ jobs:
2626

2727
- name: Install PyTorch ${{ matrix.torch-version }}+cpu
2828
run: |
29-
pip install numpy typing-extensions dataclasses
30-
pip install torch==${{ matrix.torch-version}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
29+
pip install torch==${{ matrix.torch-version }} --extra-index-url https://download.pytorch.org/whl/cpu
3130
3231
- name: Install internal dependencies
3332
run: |

.github/workflows/testing.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
matrix:
1717
os: [ubuntu-latest]
1818
python-version: [3.9]
19-
torch-version: [1.12.0]
19+
torch-version: [1.13.0]
2020
include:
21-
- torch-version: 1.12.0
22-
torchvision-version: 0.13.0
21+
- torch-version: 1.13.0
22+
torchvision-version: 0.14.0
2323

2424
steps:
2525
- uses: actions/checkout@v3
@@ -30,8 +30,7 @@ jobs:
3030

3131
- name: Install PyTorch ${{ matrix.torch-version }}+cpu
3232
run: |
33-
pip install numpy typing-extensions dataclasses
34-
pip install torch==${{ matrix.torch-version}}+cpu torchvision==${{ matrix.torchvision-version}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
33+
pip install torch==${{ matrix.torch-version }} torchvision==${{ matrix.torchvision-version}} --extra-index-url https://download.pytorch.org/whl/cpu
3534
3635
- name: Install internal dependencies
3736
run: |

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
55

66
## [2.2.0] - 2022-MM-DD
77
### Added
8+
- Added PyTorch 1.13 support ([#5975](https://github.com/pyg-team/pytorch_geometric/pull/5975))
89
- Added `int32` support in `NeighborLoader` ([#5948](https://github.com/pyg-team/pytorch_geometric/pull/5948))
910
- Add `dgNN` support and `FusedGATConv` implementation ([#5140](https://github.com/pyg-team/pytorch_geometric/pull/5140))
1011
- Added `lr_scheduler_solver` and customized `lr_scheduler` classes ([#5942](https://github.com/pyg-team/pytorch_geometric/pull/5942))

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -369,44 +369,44 @@ conda install pyg -c pyg
369369

370370
We alternatively provide pip wheels for all major OS/PyTorch/CUDA combinations, see [here](https://data.pyg.org/whl).
371371

372-
#### PyTorch 1.12
372+
#### PyTorch 1.13
373373

374-
To install the binaries for PyTorch 1.12.0, simply run
374+
To install the binaries for PyTorch 1.13.0, simply run
375375

376376
```
377-
pip install torch-scatter -f https://data.pyg.org/whl/torch-1.12.0+${CUDA}.html
378-
pip install torch-sparse -f https://data.pyg.org/whl/torch-1.12.0+${CUDA}.html
377+
pip install torch-scatter -f https://data.pyg.org/whl/torch-1.13.0+${CUDA}.html
378+
pip install torch-sparse -f https://data.pyg.org/whl/torch-1.13.0+${CUDA}.html
379379
pip install torch-geometric
380380
```
381381

382-
where `${CUDA}` should be replaced by either `cpu`, `cu102`, `cu113`, or `cu116` depending on your PyTorch installation.
382+
where `${CUDA}` should be replaced by either `cpu`, `cu116`, or `cu117` depending on your PyTorch installation.
383383

384-
| | `cpu` | `cu102` | `cu113` | `cu116` |
385-
|-------------|-------|---------|---------|---------|
386-
| **Linux** |||||
387-
| **Windows** || | ||
388-
| **macOS** || | | |
384+
| | `cpu` | `cu116` | `cu117` |
385+
|-------------|-------|---------|---------|
386+
| **Linux** ||||
387+
| **Windows** ||||
388+
| **macOS** || | |
389389

390390
For additional but optional functionality, run
391391

392392
```
393-
pip install torch-cluster -f https://data.pyg.org/whl/torch-1.12.0+${CUDA}.html
394-
pip install torch-spline-conv -f https://data.pyg.org/whl/torch-1.12.0+${CUDA}.html
393+
pip install torch-cluster -f https://data.pyg.org/whl/torch-1.13.0+${CUDA}.html
394+
pip install torch-spline-conv -f https://data.pyg.org/whl/torch-1.13.0+${CUDA}.html
395395
```
396396

397-
#### PyTorch 1.11
397+
#### PyTorch 1.12
398398

399-
To install the binaries for PyTorch 1.11.0, simply run
399+
To install the binaries for PyTorch 1.12.0, simply run
400400

401401
```
402-
pip install torch-scatter -f https://data.pyg.org/whl/torch-1.11.0+${CUDA}.html
403-
pip install torch-sparse -f https://data.pyg.org/whl/torch-1.11.0+${CUDA}.html
402+
pip install torch-scatter -f https://data.pyg.org/whl/torch-1.12.0+${CUDA}.html
403+
pip install torch-sparse -f https://data.pyg.org/whl/torch-1.12.0+${CUDA}.html
404404
pip install torch-geometric
405405
```
406406

407-
where `${CUDA}` should be replaced by either `cpu`, `cu102`, `cu113`, or `cu115` depending on your PyTorch installation (`torch.version.cuda`).
407+
where `${CUDA}` should be replaced by either `cpu`, `cu102`, `cu113`, or `cu116` depending on your PyTorch installation.
408408

409-
| | `cpu` | `cu102` | `cu113` | `cu115` |
409+
| | `cpu` | `cu102` | `cu113` | `cu116` |
410410
|-------------|-------|---------|---------|---------|
411411
| **Linux** |||||
412412
| **Windows** || |||
@@ -415,12 +415,12 @@ where `${CUDA}` should be replaced by either `cpu`, `cu102`, `cu113`, or `cu115`
415415
For additional but optional functionality, run
416416

417417
```
418-
pip install torch-cluster -f https://data.pyg.org/whl/torch-1.11.0+${CUDA}.html
419-
pip install torch-spline-conv -f https://data.pyg.org/whl/torch-1.11.0+${CUDA}.html
418+
pip install torch-cluster -f https://data.pyg.org/whl/torch-1.12.0+${CUDA}.html
419+
pip install torch-spline-conv -f https://data.pyg.org/whl/torch-1.12.0+${CUDA}.html
420420
```
421421

422-
**Note:** Binaries of older versions are also provided for PyTorch 1.4.0, PyTorch 1.5.0, PyTorch 1.6.0, PyTorch 1.7.0/1.7.1, PyTorch 1.8.0/1.8.1, PyTorch 1.9.0, and PyTorch 1.10.0/1.10.1/1.10.2 (following the same procedure).
423-
For older versions, you might need to explicitly specify the latest supported version number in order to prevent a manual installation from source.
422+
**Note:** Binaries of older versions are also provided for PyTorch 1.4.0, PyTorch 1.5.0, PyTorch 1.6.0, PyTorch 1.7.0/1.7.1, PyTorch 1.8.0/1.8.1, PyTorch 1.9.0, PyTorch 1.10.0/1.10.1/1.10.2, and PyTorch 1.11.0 (following the same procedure).
423+
For older versions, you might need to explicitly specify the latest supported version number or install via `pip install --no-index` in order to prevent a manual installation from source.
424424
You can look up the latest supported version number [here](https://data.pyg.org/whl).
425425

426426
### Nightly and Master

conda/pyg/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
```
2-
./build_conda.sh 3.9 1.12.0 cu113 # python, pytorch and cuda version
2+
./build_conda.sh 3.9 1.13.0 cu116 # python, pytorch and cuda version
33
```

0 commit comments

Comments
 (0)