Skip to content

Commit c095c62

Browse files
authored
Added PyTorch 2.2 support (#418)
* update * update * update
1 parent 32caa1c commit c095c62

File tree

6 files changed

+33
-28
lines changed

6 files changed

+33
-28
lines changed

.github/workflows/building-conda.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,22 @@ jobs:
1212
matrix:
1313
# We have trouble building for Windows - drop for now.
1414
os: [ubuntu-20.04, macos-11] # windows-2019
15-
python-version: ['3.8', '3.9', '3.10', '3.11']
16-
torch-version: [2.0.0, 2.1.0]
17-
cuda-version: ['cpu', 'cu117', 'cu118', 'cu121']
15+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
16+
torch-version: [2.2.0] # [2.1.0, 2.2.0]
17+
cuda-version: ['cpu', 'cu118', 'cu121']
1818
exclude:
19-
- torch-version: 2.0.0
20-
cuda-version: 'cu121'
19+
- python-version: '3.12' # Python 3.12 not yet supported in `conda-build`.
2120
- torch-version: 2.1.0
22-
cuda-version: 'cu117'
23-
- os: macos-11
24-
cuda-version: 'cu117'
21+
python-version: '3.12'
2522
- os: macos-11
2623
cuda-version: 'cu118'
2724
- os: macos-11
2825
cuda-version: 'cu121'
26+
# Fails with:
27+
# * note: 'value' has been explicitly marked unavailable here
28+
# * error: 'value' is unavailable: introduced in macOS 10.13
29+
- torch-version: 2.2.0
30+
os: macos-11
2931

3032
steps:
3133
- uses: actions/checkout@v2

.github/workflows/building.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,23 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: [ubuntu-20.04, macos-11, windows-2019]
14-
python-version: ['3.8', '3.9', '3.10', '3.11']
15-
torch-version: [2.0.0, 2.1.0]
16-
cuda-version: ['cpu', 'cu117', 'cu118', 'cu121']
14+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
15+
torch-version: [2.2.0] # [2.1.0, 2.2.0]
16+
cuda-version: ['cpu', 'cu118', 'cu121']
1717
exclude:
18-
- torch-version: 2.0.0
19-
cuda-version: 'cu121'
2018
- torch-version: 2.1.0
21-
cuda-version: 'cu117'
22-
- os: macos-11
23-
cuda-version: 'cu117'
19+
python-version: '3.12'
2420
- os: macos-11
2521
cuda-version: 'cu118'
2622
- os: macos-11
2723
cuda-version: 'cu121'
24+
# Fails with:
25+
# * note: 'value' has been explicitly marked unavailable here
26+
# * error: 'value' is unavailable: introduced in macOS 10.13
27+
- os: macos-11
28+
python-version: '3.11'
29+
- os: macos-11
30+
python-version: '3.12'
2831

2932
steps:
3033
- uses: actions/checkout@v2

.github/workflows/testing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
matrix:
1717
os: [ubuntu-latest, windows-latest]
1818
python-version: [3.8]
19-
torch-version: [2.0.0, 2.1.0]
19+
torch-version: [2.1.0, 2.2.0]
2020

2121
steps:
2222
- uses: actions/checkout@v2

README.md

+9-10
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ conda install pytorch-scatter -c pyg
5454

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

57-
#### PyTorch 2.1
57+
#### PyTorch 2.2
5858

59-
To install the binaries for PyTorch 2.1.0, simply run
59+
To install the binaries for PyTorch 2.2.0, simply run
6060

6161
```
62-
pip install torch-scatter -f https://data.pyg.org/whl/torch-2.1.0+${CUDA}.html
62+
pip install torch-scatter -f https://data.pyg.org/whl/torch-2.2.0+${CUDA}.html
6363
```
6464

6565
where `${CUDA}` should be replaced by either `cpu`, `cu118`, or `cu121` depending on your PyTorch installation.
@@ -70,24 +70,23 @@ where `${CUDA}` should be replaced by either `cpu`, `cu118`, or `cu121` dependin
7070
| **Windows** ||||
7171
| **macOS** || | |
7272

73+
#### PyTorch 2.1
7374

74-
#### PyTorch 2.0
75-
76-
To install the binaries for PyTorch 2.0.0, simply run
75+
To install the binaries for PyTorch 2.1.0, simply run
7776

7877
```
79-
pip install torch-scatter -f https://data.pyg.org/whl/torch-2.0.0+${CUDA}.html
78+
pip install torch-scatter -f https://data.pyg.org/whl/torch-2.1.0+${CUDA}.html
8079
```
8180

82-
where `${CUDA}` should be replaced by either `cpu`, `cu117`, or `cu118` depending on your PyTorch installation.
81+
where `${CUDA}` should be replaced by either `cpu`, `cu118`, or `cu121` depending on your PyTorch installation.
8382

84-
| | `cpu` | `cu117` | `cu118` |
83+
| | `cpu` | `cu118` | `cu121` |
8584
|-------------|-------|---------|---------|
8685
| **Linux** ||||
8786
| **Windows** ||||
8887
| **macOS** || | |
8988

90-
**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, PyTorch 1.11.0, PyTorch 1.12.0/1.12.1 and PyTorch 1.13.0/1.13.1 (following the same procedure).
89+
**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, PyTorch 1.11.0, PyTorch 1.12.0/1.12.1, PyTorch 1.13.0/1.13.1, and PyTorch 2.0.0 (following the same procedure).
9190
For older versions, you 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.
9291
You can look up the latest supported version number [here](https://data.pyg.org/whl).
9392

conda/pytorch-scatter/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
```
2-
./build_conda.sh 3.9 2.1.0 cu118 # python, pytorch and cuda version
2+
./build_conda.sh 3.11 2.2.0 cu118 # python, pytorch and cuda version
33
```

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ classifiers =
1010
Programming Language :: Python :: 3.9
1111
Programming Language :: Python :: 3.10
1212
Programming Language :: Python :: 3.11
13+
Programming Language :: Python :: 3.12
1314
Programming Language :: Python :: 3 :: Only
1415

1516
[aliases]

0 commit comments

Comments
 (0)