Skip to content

Commit 4fd0265

Browse files
committed
Support PyTorch 2.11.0
1 parent 6fec0f0 commit 4fd0265

File tree

12 files changed

+37
-23
lines changed

12 files changed

+37
-23
lines changed

.github/actions/setup/action.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
default: '3.10'
77
torch-version:
88
required: false
9-
default: '2.10.0'
9+
default: '2.11.0'
1010
cuda-version:
1111
required: false
1212
default: cpu
@@ -40,7 +40,7 @@ runs:
4040

4141
- name: Install PyTorch ${{ inputs.torch-version }}+${{ inputs.cuda-version }}
4242
run: |
43-
if [ ${{ inputs.torch-version }} == '2.11.0' ]; then
43+
if [ ${{ inputs.torch-version }} == '2.12.0' ]; then
4444
uv pip install --pre torch --torch-backend ${{ inputs.cuda-version }}
4545
else
4646
uv pip install torch==${{ inputs.torch-version }} --torch-backend ${{ inputs.cuda-version }}
@@ -50,14 +50,6 @@ runs:
5050
python -c "import torch; print('CXX11 ABI:', torch.compiled_with_cxx11_abi())"
5151
shell: bash
5252

53-
- name: Disable CUDNN
54-
if: ${{ inputs.cuda-version != 'cpu' && inputs.torch-version == '1.13.0' }}
55-
run: |
56-
Torch_DIR=`python -c 'import torch;print(torch.utils.cmake_prefix_path)'`
57-
sed -i '95,100d' ${Torch_DIR}/Caffe2/Caffe2Config.cmake
58-
sed -i 's/;caffe2::cudnn-public//g' ${Torch_DIR}/Caffe2/Caffe2Targets.cmake
59-
shell: bash
60-
6153
- name: Downgrade GLIBC
6254
if: ${{ runner.os == 'Linux' }}
6355
run: |

.github/workflows/utils/build_linux.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
set -ex
33

44
CUDA_VERSION="${1:?Specify cuda version, e.g. cpu, cu130}"
5-
PYTHON_VERSION="${2:?Specify python version, e.g. 3.13}"
6-
TORCH_VERSION="${3:?Specify torch version, e.g. 2.10.0}"
5+
PYTHON_VERSION="${2:?Specify python version, e.g. 3.14}"
6+
TORCH_VERSION="${3:?Specify torch version, e.g. 2.11.0}"
77
echo "CUDA_VERSION: ${CUDA_VERSION}"
88
echo "PYTHON_VERSION: ${PYTHON_VERSION//./}"
99
echo "TORCH_VERSION: ${TORCH_VERSION}"
@@ -14,7 +14,7 @@ echo "TORCH_CUDA_ARCH_LIST: ${TORCH_CUDA_ARCH_LIST}"
1414

1515
export CIBW_BUILD="cp${PYTHON_VERSION//./}-manylinux_x86_64"
1616
# pyg-lib doesn't have torch as a dependency, so we need to explicitly install it when running tests.
17-
if [[ "${TORCH_VERSION}" == "2.11.0" ]]; then
17+
if [[ "${TORCH_VERSION}" == "2.12.0" ]]; then
1818
export CIBW_BEFORE_BUILD="pip install ninja wheel setuptools && pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/${CUDA_VERSION}"
1919
export CIBW_BEFORE_TEST="pip install pytest && pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/${CUDA_VERSION}"
2020
else

.github/workflows/utils/build_macos.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/bash
22
set -ex
33

4-
PYTHON_VERSION="${1:?Specify python version, e.g. 3.13}"
5-
TORCH_VERSION="${2:?Specify torch version, e.g. 2.10.0}"
4+
PYTHON_VERSION="${1:?Specify python version, e.g. 3.14}"
5+
TORCH_VERSION="${2:?Specify torch version, e.g. 2.11.0}"
66
echo "PYTHON_VERSION: ${PYTHON_VERSION//./}"
77
echo "TORCH_VERSION: ${TORCH_VERSION}"
88

99
export CIBW_BUILD="cp${PYTHON_VERSION//./}-macosx_arm64"
1010
# pyg-lib doesn't have torch as a dependency, so we need to explicitly install it when running tests.
11-
if [[ "${TORCH_VERSION}" == "2.11.0" ]]; then
11+
if [[ "${TORCH_VERSION}" == "2.12.0" ]]; then
1212
export CIBW_BEFORE_BUILD="pip install ninja wheel setuptools && pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu"
1313
export CIBW_BEFORE_TEST="pip install pytest && pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu"
1414
else

.github/workflows/utils/full_matrix_linux.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
[
2+
{
3+
"torch-version": "2.11.0",
4+
"python-version": ["3.10", "3.11", "3.12", "3.13", "3.14"],
5+
"cuda-version": ["cpu", "cu126", "cu128", "cu130"]
6+
},
27
{
38
"torch-version": "2.10.0",
49
"python-version": ["3.10", "3.11", "3.12", "3.13", "3.14"],

.github/workflows/utils/full_matrix_macos.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
[
2+
{
3+
"torch-version": "2.11.0",
4+
"python-version": ["3.10", "3.11", "3.12", "3.13", "3.14"],
5+
"cuda-version": ["cpu"]
6+
},
27
{
38
"torch-version": "2.10.0",
49
"python-version": ["3.10", "3.11", "3.12", "3.13", "3.14"],

.github/workflows/utils/full_matrix_windows.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
[
2+
{
3+
"torch-version": "2.11.0",
4+
"python-version": ["3.10", "3.11", "3.12", "3.13", "3.14"],
5+
"cuda-version": ["cpu", "cu126", "cu128", "cu130"]
6+
},
27
{
38
"torch-version": "2.10.0",
49
"python-version": ["3.10", "3.11", "3.12", "3.13", "3.14"],

.github/workflows/utils/minimal_matrix_linux.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
3-
"torch-version": "2.10.0",
3+
"torch-version": "2.11.0",
44
"python-version": ["3.10", "3.14"],
55
"cuda-version": ["cpu", "cu130"]
66
},

.github/workflows/utils/minimal_matrix_macos.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
3-
"torch-version": "2.10.0",
3+
"torch-version": "2.11.0",
44
"python-version": ["3.10", "3.14"],
55
"cuda-version": ["cpu"]
66
},

.github/workflows/utils/minimal_matrix_windows.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
3-
"torch-version": "2.10.0",
3+
"torch-version": "2.11.0",
44
"python-version": ["3.10", "3.14"],
55
"cuda-version": ["cpu", "cu130"]
66
},

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
## [Unreleased]
77
### Added
8+
- Added PyTorch 2.11 support ([#608](https://github.com/pyg-team/pyg-lib/pull/608))
89
- Added Python 3.14 support ([#581](https://github.com/pyg-team/pyg-lib/pull/581), [#582](https://github.com/pyg-team/pyg-lib/pull/582), [#583](https://github.com/pyg-team/pyg-lib/pull/583))
910
- Migrated `rusty1s/pytorch_spline_conv` to `pyg-lib` ([#566](https://github.com/pyg-team/pyg-lib/pull/566), [#567](https://github.com/pyg-team/pyg-lib/pull/567), [#568](https://github.com/pyg-team/pyg-lib/pull/568), [#569](https://github.com/pyg-team/pyg-lib/pull/569), [#570](https://github.com/pyg-team/pyg-lib/pull/570), [#572](https://github.com/pyg-team/pyg-lib/pull/572))
1011
- Added CUDA 13.0 support on Windows ([#580](https://github.com/pyg-team/pyg-lib/pull/580))

0 commit comments

Comments
 (0)