Thanks to visit codestin.com
Credit goes to github.com

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
6 changes: 5 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ runs:

- name: Install PyTorch ${{ inputs.torch-version }}+${{ inputs.cuda-version }}
run: |
pip install torch==${{ inputs.torch-version }} --extra-index-url https://download.pytorch.org/whl/${{ inputs.cuda-version }}
if [ ${{ inputs.torch-version }} == '2.9.0' ]; then
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/${{ inputs.cuda-version }}
else
pip install torch==${{ inputs.torch-version }} --index-url https://download.pytorch.org/whl/${{ inputs.cuda-version }}
fi
python -c "import torch; print('PyTorch:', torch.__version__)"
python -c "import torch; print('CUDA:', torch.version.cuda)"
python -c "import torch; print('CXX11 ABI:', torch.compiled_with_cxx11_abi())"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cuda/Linux-env.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/bash

case ${1} in
cu130)
export FORCE_CUDA=1
export PATH=/usr/local/cuda-13.0/bin:${PATH}
export TORCH_CUDA_ARCH_LIST="7.5;8.0;8.6;9.0;10.0;12.0+PTX"
;;
cu129)
export FORCE_CUDA=1
export PATH=/usr/local/cuda-12.9/bin:${PATH}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/cuda/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ OS=ubuntu2204

# https://developer.nvidia.com/cuda-toolkit-archive
case ${1} in
cu130)
CUDA=13.0
APT_KEY=${OS}-${CUDA/./-}-local
FILENAME=cuda-repo-${APT_KEY}_${CUDA}.0-580.65.06-1_amd64.deb
URL=https://developer.download.nvidia.com/compute/cuda/${CUDA}.1/local_installers
;;
cu129)
CUDA=12.9
APT_KEY=${OS}-${CUDA/./-}-local
Expand Down Expand Up @@ -81,7 +87,7 @@ sudo mv cuda-${OS}.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget -nv ${URL}/${FILENAME}
sudo dpkg -i ${FILENAME}

if [ "${1}" = "cu117" ] || [ "${1}" = "cu118" ] || [ "${1}" = "cu121" ] || [ "${1}" = "cu124" ] || [ "${1}" = "cu126" ] || [ "${1}" = "cu128" ] || [ "${1}" = "cu129" ]; then
if [ "${1}" = "cu117" ] || [ "${1}" = "cu118" ] || [ "${1}" = "cu121" ] || [ "${1}" = "cu124" ] || [ "${1}" = "cu126" ] || [ "${1}" = "cu128" ] || [ "${1}" = "cu129" ] || [ "${1}" = "cu130" ]; then
sudo cp /var/cuda-repo-${APT_KEY}/cuda-*-keyring.gpg /usr/share/keyrings/
else
sudo apt-key add /var/cuda-repo-${APT_KEY}/7fa2af80.pub
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cuda/Windows-env.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash

case ${1} in
cu130)
export FORCE_CUDA=1
export PATH=/c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v13.0/bin:${PATH}
;;
cu129)
export FORCE_CUDA=1
export PATH=/c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v12.9/bin:${PATH}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cuda/Windows.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/bash

case ${1} in
cu130)
CUDA_SHORT=13.0
CUDA_URL=https://developer.download.nvidia.com/compute/cuda/${CUDA_SHORT}.0/local_installers
CUDA_FILE=cuda_${CUDA_SHORT}.0_windows.exe
;;
cu129)
CUDA_SHORT=12.9
CUDA_URL=https://developer.download.nvidia.com/compute/cuda/${CUDA_SHORT}.1/local_installers
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/utils/build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ echo "FORCE_CUDA: ${FORCE_CUDA}"
echo "TORCH_CUDA_ARCH_LIST: ${TORCH_CUDA_ARCH_LIST}"

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

if [[ "${CUDA_VERSION}" == "cu"* ]]; then
# Use CUDA-pre-installed image
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/utils/full_matrix_linux.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"torch-version": "2.9.0",
"python-version": ["3.10", "3.11", "3.12", "3.13"],
"cuda-version": ["cpu", "cu130"]
},
{
"torch-version": "2.8.0",
"python-version": ["3.9", "3.10", "3.11", "3.12", "3.13"],
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/utils/full_matrix_macos.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
[
{
"torch-version": "2.9.0",
"python-version": ["3.10", "3.11", "3.12", "3.13"],
"cuda-version": ["cpu"]
},
{
"torch-version": "2.8.0",
"python-version": ["3.9", "3.10", "3.11", "3.12", "3.13"],
"cuda-version": ["cpu"]
},
{
"torch-version": "2.7.0",
"python-version": ["3.9", "3.10", "3.11", "3.12", "3.13"],
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/utils/full_matrix_windows.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"torch-version": "2.9.0",
"python-version": ["3.10", "3.11", "3.12", "3.13"],
"cuda-version": ["cpu"]
},
{
"torch-version": "2.8.0",
"python-version": ["3.9", "3.10", "3.11", "3.12", "3.13"],
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/utils/minimal_matrix_linux.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"torch-version": "2.9.0",
"python-version": ["3.10", "3.13"],
"cuda-version": ["cu130"]
},
{
"torch-version": "2.8.0",
"python-version": ["3.9", "3.13"],
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/utils/minimal_matrix_macos.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
[
{
"torch-version": "2.7.0",
"torch-version": "2.9.0",
"python-version": ["3.10", "3.13"],
"cuda-version": ["cpu"]
},
{
"torch-version": "2.8.0",
"python-version": ["3.9", "3.13"],
"cuda-version": ["cpu"]
},
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/utils/minimal_matrix_windows.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"torch-version": "2.9.0",
"python-version": ["3.10", "3.13"],
"cuda-version": ["cpu"]
},
{
"torch-version": "2.8.0",
"python-version": ["3.9", "3.13"],
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Added
- Added support for `manylinux_2_28` wheels built with CUDA in nightly releases ([#496](https://github.com/pyg-team/pyg-lib/pull/496))
- Added support for `manylinux_2_28` wheels in nightly releases ([#480](https://github.com/pyg-team/pyg-lib/pull/480))
- Added CUDA 13.0 support ([#509](https://github.com/pyg-team/pyg-lib/pull/509))
- Added CUDA 13.0 support ([#509](https://github.com/pyg-team/pyg-lib/pull/509), [#511](https://github.com/pyg-team/pyg-lib/pull/511))
- Added CUDA 12.9 support ([#494](https://github.com/pyg-team/pyg-lib/pull/494))
- Added PyTorch 2.8 support ([#494](https://github.com/pyg-team/pyg-lib/pull/494))
- Added PyTorch 2.7 support ([#442](https://github.com/pyg-team/pyg-lib/pull/442))
Expand Down
Loading