Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 8 additions & 27 deletions .github/workflows/building.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,24 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-14, windows-2022, ubuntu-22.04-arm]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
torch-version: [2.8.0]
cuda-version: ['cpu', 'cu118', 'cu124', 'cu126', 'cu128', 'cu129']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
torch-version: [2.9.0, 2.10.0]
cuda-version: ['cpu', 'cu126', 'cu128', 'cu130']
exclude:
- torch-version: 2.6.0
cuda-version: 'cu128'
- torch-version: 2.6.0
cuda-version: 'cu129'
- torch-version: 2.7.0
cuda-version: 'cu124'
- torch-version: 2.7.0
cuda-version: 'cu129'
- torch-version: 2.8.0
cuda-version: 'cu118'
- torch-version: 2.8.0
cuda-version: 'cu124'
- os: macos-14
cuda-version: 'cu118'
- os: macos-14
cuda-version: 'cu124'
- os: windows-2022
cuda-version: 'cu130'
- os: macos-14
cuda-version: 'cu126'
- os: macos-14
cuda-version: 'cu128'
- os: macos-14
cuda-version: 'cu129'
- os: ubuntu-22.04-arm
cuda-version: 'cu118'
- os: ubuntu-22.04-arm
cuda-version: 'cu124'
cuda-version: 'cu130'
- os: ubuntu-22.04-arm
cuda-version: 'cu126'
- os: ubuntu-22.04-arm
cuda-version: 'cu128'
- os: ubuntu-22.04-arm
cuda-version: 'cu129'
cuda-version: 'cu130'

steps:
- uses: actions/checkout@v4
Expand All @@ -68,9 +50,8 @@ jobs:
pip install wheel

- name: Install scipy
if: ${{ matrix.python-version == '3.9' }}
run: |
pip install scipy==1.10.1
pip install scipy

- name: Free Disk Space (Ubuntu)
if: ${{ runner.os == 'Linux' }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/cuda/cu130-Linux-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

CUDA_HOME=/usr/local/cuda-13.0
LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
PATH=${CUDA_HOME}/bin:${PATH}

export FORCE_CUDA=1
export TORCH_CUDA_ARCH_LIST="7.5;8.0;8.6;9.0;10.0;12.0+PTX"
17 changes: 17 additions & 0 deletions .github/workflows/cuda/cu130-Linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

OS=ubuntu2204

wget -nv https://developer.download.nvidia.com/compute/cuda/repos/${OS}/x86_64/cuda-${OS}.pin
sudo mv cuda-${OS}.pin /etc/apt/preferences.d/cuda-repository-pin-600

wget -nv https://developer.download.nvidia.com/compute/cuda/13.0.2/local_installers/cuda-repo-${OS}-13-0-local_13.0.2-580.95.05-1_amd64.deb

sudo dpkg -i cuda-repo-${OS}-13-0-local_13.0.2-580.95.05-1_amd64.deb
sudo cp /var/cuda-repo-${OS}-13-0-local/cuda-*-keyring.gpg /usr/share/keyrings/

sudo apt-get -qq update
sudo apt install cuda-nvcc-13-0 cuda-libraries-dev-13-0
sudo apt clean

rm -f *.deb
1 change: 1 addition & 0 deletions .github/workflows/metis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ cd "${METIS}" || exit
sed -i.bak -e 's/IDXTYPEWIDTH 32/IDXTYPEWIDTH 64/g' include/metis.h
sed -i '1s/^/#if defined(__linux__) \&\& defined(__x86_64__)\n__asm__(".symver log,log@GLIBC_2.2.5");\n#endif\n/' GKlib/gk_proto.h
sed -i '1s/^/#if defined(__linux__) \&\& defined(__x86_64__)\n__asm__(".symver pow,pow@GLIBC_2.2.5");\n#endif\n/' libmetis/metislib.h
sed -i.bak 's/cmake_minimum_required(VERSION 2\.8)/cmake_minimum_required(VERSION 3.5)/' CMakeLists.txt GKlib/CMakeLists.txt

make config
make
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-2022]
python-version: [3.9]
torch-version: [2.7.0, 2.8.0]
python-version: ['3.10']
torch-version: [2.9.0, 2.10.0]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -53,9 +53,8 @@ jobs:
echo WITH_METIS=0 >> $GITHUB_ENV

- name: Install scipy
if: ${{ matrix.python-version == '3.9' }}
run: |
pip install scipy==1.10.1
pip install scipy

- name: Install main package
run: |
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,55 +34,55 @@ Note that only `value` comes with autograd support, as `index` is discrete and t

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

#### PyTorch 2.8
#### PyTorch 2.10

To install the binaries for PyTorch 2.8.0, simply run
To install the binaries for PyTorch 2.10, simply run

```
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.8.0+${CUDA}.html
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.10.0+${CUDA}.html
```

where `${CUDA}` should be replaced by either `cpu`, `cu126`, `cu128`, or `cu129` depending on your PyTorch installation.
where `${CUDA}` should be replaced by either `cpu`, `cu126`, `cu128`, or `cu130` depending on your PyTorch installation.

| | `cpu` | `cu126` | `cu128` | `cu129` |
| | `cpu` | `cu126` | `cu128` | `cu130` |
|-------------|-------|---------|---------|---------|
| **Linux** | ✅ | ✅ | ✅ | ✅ |
| **Windows** | ✅ | ✅ | ✅ | ✅ |
| **macOS** | ✅ | | | |

#### PyTorch 2.7
#### PyTorch 2.9

To install the binaries for PyTorch 2.7.0, simply run
To install the binaries for PyTorch 2.9, simply run

```
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.7.0+${CUDA}.html
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.9.0+${CUDA}.html
```

where `${CUDA}` should be replaced by either `cpu`, `cu118`, `cu126`, or `cu128` depending on your PyTorch installation.
where `${CUDA}` should be replaced by either `cpu`, `cu126`, `cu128`, or `cu130` depending on your PyTorch installation.

| | `cpu` | `cu118` | `cu126` | `cu128` |
| | `cpu` | `cu126` | `cu128` | `cu130` |
|-------------|-------|---------|---------|---------|
| **Linux** | ✅ | ✅ | ✅ | ✅ |
| **Windows** | ✅ | ✅ | ✅ | ✅ |
| **macOS** | ✅ | | | |

#### PyTorch 2.6
#### PyTorch 2.8

To install the binaries for PyTorch 2.6.0, simply run
To install the binaries for PyTorch 2.8, simply run

```
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.6.0+${CUDA}.html
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.8.0+${CUDA}.html
```

where `${CUDA}` should be replaced by either `cpu`, `cu118`, `cu124`, or `cu126` depending on your PyTorch installation.
where `${CUDA}` should be replaced by either `cpu`, `cu126`, `cu128`, or `cu129` depending on your PyTorch installation.

| | `cpu` | `cu118` | `cu124` | `cu126` |
| | `cpu` | `cu126` | `cu128` | `cu129` |
|-------------|-------|---------|---------|---------|
| **Linux** | ✅ | ✅ | ✅ | ✅ |
| **Windows** | ✅ | ✅ | ✅ | ✅ |
| **macOS** | ✅ | | | |

**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, PyTorch 2.0.0/2.0.1, PyTorch 2.1.0/2.1.1/2.1.2, PyTorch 2.2.0/2.2.1/2.2.2, PyTorch 2.3.0/2.3.1, PyTorch 2.4.0/2.4.1, and PyTorch 2.5.0/2.5.1 (following the same procedure).
**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, PyTorch 2.0.0/2.0.1, PyTorch 2.1.0/2.1.1/2.1.2, PyTorch 2.2.0/2.2.1/2.2.2, PyTorch 2.3.0/2.3.1, PyTorch 2.4.0/2.4.1, PyTorch 2.5.0/2.5.1, PyTorch 2.6.0, and PyTorch 2.7.0/2.7.1 (following the same procedure).
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.
You can look up the latest supported version number [here](https://data.pyg.org/whl).

Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ def get_extensions():
nvcc_flags = os.getenv('NVCC_FLAGS', '')
nvcc_flags = [] if nvcc_flags == '' else nvcc_flags.split(' ')
nvcc_flags += ['-O3']
nvcc_flags += ['-DTORCH_INDUCTOR_CPP_WRAPPER']
if sys.platform == 'win32':
nvcc_flags += ['-Xcompiler', '/permissive-']
if torch.version.hip:
# USE_ROCM was added to later versions of PyTorch
# Define here to support older PyTorch versions as well:
Expand Down