Skip to content

[pull] master from rusty1s:master #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 72 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
68e085e
PyTorch 1.11 Support (#277)
rusty1s Mar 10, 2022
180a83d
[ci skip]
rusty1s Mar 10, 2022
2887baa
[ci skip]
rusty1s Mar 10, 2022
ad0094f
[ci skip]
rusty1s Mar 10, 2022
2d0f1ea
[ci skip]
rusty1s Mar 11, 2022
2052fd0
fix doc build [ci skip]
rusty1s Mar 11, 2022
3894287
update README [ci skip]
rusty1s Mar 11, 2022
8602de1
update README [ci skip]
rusty1s Mar 11, 2022
7c0d2e0
[ci skip]
rusty1s Mar 11, 2022
5f95c8e
[ci skip]
rusty1s Mar 11, 2022
faa1287
[ci skip]
rusty1s Mar 11, 2022
b552d40
[ci skip]
rusty1s Mar 11, 2022
d53e3ac
[ci skip]
rusty1s Mar 11, 2022
47de00a
build conda [ci skip]
rusty1s Mar 11, 2022
739bc8f
build conda [ci skip]
rusty1s Mar 11, 2022
6f73368
[ci skip]
rusty1s Mar 11, 2022
c9c47b9
[ci skip]
rusty1s Mar 11, 2022
22b7aed
[ci skip]
rusty1s Mar 11, 2022
0f9a0a4
[ci skip]
rusty1s Mar 11, 2022
f1d9e0b
[ci skip]
rusty1s Mar 11, 2022
b2efd23
[ci skip]
rusty1s Mar 11, 2022
a44a586
[ci skip]
rusty1s Mar 11, 2022
f9ca6e3
[ci skip]
rusty1s Mar 11, 2022
bccfad3
[ci skip]
rusty1s Mar 11, 2022
8c96a70
[ci skip]
rusty1s Mar 11, 2022
1b96e9e
[ci skip]
rusty1s Mar 11, 2022
7f13438
[ci skip]
rusty1s Mar 11, 2022
81eba39
[ci skip]
rusty1s Mar 11, 2022
3b7b748
[ci skip]
rusty1s Mar 11, 2022
e60840d
update readme [ci skip]
rusty1s Mar 21, 2022
ae1fce5
cmake fixes (#278)
rusty1s Mar 21, 2022
1913040
fix half conversion (#280)
rusty1s Mar 24, 2022
77cfe4b
prevent creating cuda context on import (#282)
rusty1s Mar 25, 2022
847995d
adding WITH_SYMBOLS env var (#300)
mszarma May 31, 2022
5ec31fc
PyTorch 1.12 support (#308)
rusty1s Jun 29, 2022
06321b5
fix conda build [ci skip]
rusty1s Jun 30, 2022
a24b836
Export symbols for Windows DLL and MSVC build compatibility (#294)
GericoVi Jul 9, 2022
7b0aa73
Adding missing headers to CMakeLists (#311)
GericoVi Jul 13, 2022
fc1b139
`WITH_PYTHON` conditionals (#313)
GericoVi Jul 23, 2022
18d3759
Add scatter/segment bf16 support (#316)
yanbing-j Aug 18, 2022
9a651d9
enable ROCm build; add BF16 for ROCm and CUDA (#325)
jeffdaily Oct 3, 2022
e3b49fa
enable O3 build
rusty1s Oct 3, 2022
c615acc
fix sphinx toctree depth
rusty1s Oct 3, 2022
5737336
Bring back `composite` documentation (#331)
rusty1s Oct 29, 2022
f95330e
PyTorch 1.13 support (#334)
rusty1s Nov 14, 2022
c128508
Build wheels for Windows and Python 3.7 (#336)
rusty1s Nov 21, 2022
003abd5
Improve `scatter` performance + upgrade to `torch-scatter==2.1.0` (#338)
rusty1s Nov 24, 2022
8e6635b
fix test (#340)
rusty1s Nov 29, 2022
111ffc4
Use `static constexpr` for VS compilation (#342)
HunterTracer Dec 5, 2022
fe83843
add SCATTER_API definition for scatter_mul in scatter.cpp & scatter.h…
HunterTracer Dec 9, 2022
fa4f442
Fix compilation errors occurring when building with PyTorch-nightly (…
DamianSzwichtenberg Jan 11, 2023
c38e20a
PyTorch 2.0 wheels (#358)
rusty1s Mar 16, 2023
a2a85fe
update (#369)
rusty1s Apr 14, 2023
dbf42c4
fix test
rusty1s Apr 14, 2023
48cede7
Optimize segment_coo and segment_csr BFloat16/Half implementation in …
yanbing-j Jun 1, 2023
2836d0b
Build Python 3.11 conda package (#376)
jamesmyatt Jun 4, 2023
a2a2afb
Fix cmake abosule paths in build interface (#377)
AgarwalSaurav Jun 4, 2023
140d3ad
update (#395)
rusty1s Oct 5, 2023
32caa1c
[ROCm] fixes ambiguous calls to shfl* where there is no explicit type…
ashwinma Jan 23, 2024
c095c62
Added PyTorch 2.2 support (#418)
rusty1s Feb 1, 2024
f4696b7
update (#436)
rusty1s Apr 15, 2024
e2b3314
Add PyTorch 2.3 support (#439)
rusty1s Apr 29, 2024
521d26f
Create pyproject.toml (#441)
albapa May 10, 2024
96aa2e3
Fix `logsumexp` when `out` is passed (#445)
rusty1s May 27, 2024
8ec9364
update (#458)
rusty1s Aug 15, 2024
4913ada
update (#466)
rusty1s Nov 11, 2024
7cabb53
update the standard from 14 to 17 to avoid compile error (#469)
guanshaoheng Dec 2, 2024
7126aeb
c10::optional -> std::optional (#473)
r-barnes Jan 10, 2025
10144cc
PyTorch 2.6. support (#481)
rusty1s Apr 5, 2025
dd346a9
Add Python 3.13 support (#482)
rusty1s Apr 10, 2025
271b5fc
Fix typo
rusty1s Apr 10, 2025
6cf77c4
[arm64 ci] add arm64 github runners (#483)
snadampal Apr 20, 2025
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
85 changes: 0 additions & 85 deletions .github/workflows/building-conda.yml

This file was deleted.

72 changes: 51 additions & 21 deletions .github/workflows/building.yml
Original file line number Diff line number Diff line change
@@ -10,21 +10,25 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, macos-10.15, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
torch-version: [1.9.0, 1.10.0]
cuda-version: ['cpu', 'cu102', 'cu111', 'cu113']
os: [ubuntu-20.04, macos-14, windows-2019, ubuntu-22.04-arm]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
torch-version: [2.6.0] # [2.5.0]
cuda-version: ['cpu', 'cu118', 'cu121', 'cu124', 'cu126']
exclude:
- torch-version: 1.9.0
cuda-version: 'cu113'
- torch-version: 1.10.0
cuda-version: 'cu111'
- os: macos-10.15
cuda-version: 'cu102'
- os: macos-10.15
cuda-version: 'cu111'
- os: macos-10.15
cuda-version: 'cu113'
- torch-version: 2.5.0
python-version: '3.13'
- torch-version: 2.5.0
cuda-version: 'cu126'
- torch-version: 2.6.0
cuda-version: 'cu121'
- os: macos-14
cuda-version: 'cu118'
- os: macos-14
cuda-version: 'cu121'
- os: macos-14
cuda-version: 'cu124'
- os: macos-14
cuda-version: 'cu126'

steps:
- uses: actions/checkout@v2
@@ -33,10 +37,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Free up disk space
if: ${{ runner.os == 'Linux' }}
- name: Upgrade pip
run: |
sudo rm -rf /usr/share/dotnet
pip install --upgrade setuptools
- name: Free Disk Space (Ubuntu)
if: ${{ runner.os == 'Linux' }}
uses: jlumbroso/free-disk-space@main

- name: Install CUDA ${{ matrix.cuda-version }}
if: ${{ matrix.cuda-version != 'cpu' }}
@@ -45,26 +52,49 @@ jobs:
- name: Install PyTorch ${{ matrix.torch-version }}+${{ matrix.cuda-version }}
run: |
pip install numpy typing-extensions dataclasses
pip install --no-index --no-cache-dir torch==${{ matrix.torch-version}} -f https://download.pytorch.org/whl/${{ matrix.cuda-version }}/torch_stable.html
pip install torch==${{ matrix.torch-version }} --extra-index-url https://download.pytorch.org/whl/${{ matrix.cuda-version }}
python -c "import torch; print('PyTorch:', torch.__version__)"
python -c "import torch; print('CUDA:', torch.version.cuda)"
- name: Patch PyTorch static constexpr on Windows
if: ${{ runner.os == 'Windows' }}
run: |
Torch_DIR=`python -c 'import os; import torch; print(os.path.dirname(torch.__file__))'`
sed -i '31,38c\
TORCH_API void lazy_init_num_threads();' ${Torch_DIR}/include/ATen/Parallel.h
shell: bash

- name: Set version
if: ${{ runner.os != 'macOS' }}
run: |
VERSION=`sed -n "s/^__version__ = '\(.*\)'/\1/p" torch_scatter/__init__.py`
TORCH_VERSION=`echo "pt${{ matrix.torch-version }}" | sed "s/..$//" | sed "s/\.//g"`
CUDA_VERSION=`echo ${{ matrix.cuda-version }}`
echo "New version name: $VERSION+$TORCH_VERSION$CUDA_VERSION"
sed -i "s/$VERSION/$VERSION+$TORCH_VERSION$CUDA_VERSION/" setup.py
sed -i "s/$VERSION/$VERSION+$TORCH_VERSION$CUDA_VERSION/" torch_scatter/__init__.py
shell:
bash

- name: Install main package for CPU
if: ${{ matrix.cuda-version == 'cpu' }}
run: |
FORCE_ONLY_CPU=1 pip install -e .
FORCE_ONLY_CPU=1 python setup.py develop
shell:
bash

- name: Install main package for GPU
if: ${{ matrix.cuda-version != 'cpu' }}
run: |
source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh
pip install -e .
python setup.py develop
shell:
bash

- name: Test installation
run: |
python -c "import torch_scatter; print('torch-scatter:', torch_scatter.__version__)"
- name: Build wheel
run: |
pip install wheel
8 changes: 8 additions & 0 deletions .github/workflows/cuda/cu115-Linux-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

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

export FORCE_CUDA=1
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0;7.5;8.0;8.6"
15 changes: 15 additions & 0 deletions .github/workflows/cuda/cu115-Linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

OS=ubuntu1804

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/11.5.2/local_installers/cuda-repo-${OS}-11-5-local_11.5.2-495.29.05-1_amd64.deb
sudo dpkg -i cuda-repo-${OS}-11-5-local_11.5.2-495.29.05-1_amd64.deb
sudo apt-key add /var/cuda-repo-${OS}-11-5-local/7fa2af80.pub

sudo apt-get -qq update
sudo apt install cuda-nvcc-11-5 cuda-libraries-dev-11-5
sudo apt clean

rm -f https://developer.download.nvidia.com/compute/cuda/11.5.2/local_installers/cuda-repo-${OS}-11-5-local_11.5.2-495.29.05-1_amd64.deb
8 changes: 8 additions & 0 deletions .github/workflows/cuda/cu115-Windows-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

CUDA_HOME=/c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v11.3
PATH=${CUDA_HOME}/bin:$PATH
PATH=/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/MSBuild/15.0/Bin:$PATH

export FORCE_CUDA=1
export TORCH_CUDA_ARCH_LIST="6.0+PTX"
20 changes: 20 additions & 0 deletions .github/workflows/cuda/cu115-Windows.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# TODO We currently use CUDA 11.3 to build CUDA 11.5 Windows wheels

# Install NVIDIA drivers, see:
# https://github.com/pytorch/vision/blob/master/packaging/windows/internal/cuda_install.bat#L99-L102
curl -k -L "https://drive.google.com/u/0/uc?id=1injUyo3lnarMgWyRcXqKg4UGnN0ysmuq&export=download" --output "/tmp/gpu_driver_dlls.zip"
7z x "/tmp/gpu_driver_dlls.zip" -o"/c/Windows/System32"

export CUDA_SHORT=11.3
export CUDA_URL=https://developer.download.nvidia.com/compute/cuda/${CUDA_SHORT}.0/local_installers
export CUDA_FILE=cuda_${CUDA_SHORT}.0_465.89_win10.exe

# Install CUDA:
curl -k -L "${CUDA_URL}/${CUDA_FILE}" --output "${CUDA_FILE}"
echo ""
echo "Installing from ${CUDA_FILE}..."
PowerShell -Command "Start-Process -FilePath \"${CUDA_FILE}\" -ArgumentList \"-s nvcc_${CUDA_SHORT} cuobjdump_${CUDA_SHORT} nvprune_${CUDA_SHORT} cupti_${CUDA_SHORT} cublas_dev_${CUDA_SHORT} cudart_${CUDA_SHORT} cufft_dev_${CUDA_SHORT} curand_dev_${CUDA_SHORT} cusolver_dev_${CUDA_SHORT} cusparse_dev_${CUDA_SHORT} thrust_${CUDA_SHORT} npp_dev_${CUDA_SHORT} nvrtc_dev_${CUDA_SHORT} nvml_dev_${CUDA_SHORT}\" -Wait -NoNewWindow"
echo "Done!"
rm -f "${CUDA_FILE}"
8 changes: 8 additions & 0 deletions .github/workflows/cuda/cu116-Linux-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

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

export FORCE_CUDA=1
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0;7.5;8.0;8.6"
15 changes: 15 additions & 0 deletions .github/workflows/cuda/cu116-Linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

OS=ubuntu1804

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/11.6.2/local_installers/cuda-repo-${OS}-11-6-local_11.6.2-510.47.03-1_amd64.deb
sudo dpkg -i cuda-repo-${OS}-11-6-local_11.6.2-510.47.03-1_amd64.deb
sudo apt-key add /var/cuda-repo-${OS}-11-6-local/7fa2af80.pub

sudo apt-get -qq update
sudo apt install cuda-nvcc-11-6 cuda-libraries-dev-11-6
sudo apt clean

rm -f https://developer.download.nvidia.com/compute/cuda/11.5.2/local_installers/cuda-repo-${OS}-11-6-local_11.6.2-510.47.03-1_amd64.deb
8 changes: 8 additions & 0 deletions .github/workflows/cuda/cu116-Windows-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

CUDA_HOME=/c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v11.3
PATH=${CUDA_HOME}/bin:$PATH
PATH=/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/MSBuild/15.0/Bin:$PATH

export FORCE_CUDA=1
export TORCH_CUDA_ARCH_LIST="6.0+PTX"
20 changes: 20 additions & 0 deletions .github/workflows/cuda/cu116-Windows.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# TODO We currently use CUDA 11.3 to build CUDA 11.6 Windows wheels

# Install NVIDIA drivers, see:
# https://github.com/pytorch/vision/blob/master/packaging/windows/internal/cuda_install.bat#L99-L102
curl -k -L "https://drive.google.com/u/0/uc?id=1injUyo3lnarMgWyRcXqKg4UGnN0ysmuq&export=download" --output "/tmp/gpu_driver_dlls.zip"
7z x "/tmp/gpu_driver_dlls.zip" -o"/c/Windows/System32"

export CUDA_SHORT=11.3
export CUDA_URL=https://developer.download.nvidia.com/compute/cuda/${CUDA_SHORT}.0/local_installers
export CUDA_FILE=cuda_${CUDA_SHORT}.0_465.89_win10.exe

# Install CUDA:
curl -k -L "${CUDA_URL}/${CUDA_FILE}" --output "${CUDA_FILE}"
echo ""
echo "Installing from ${CUDA_FILE}..."
PowerShell -Command "Start-Process -FilePath \"${CUDA_FILE}\" -ArgumentList \"-s nvcc_${CUDA_SHORT} cuobjdump_${CUDA_SHORT} nvprune_${CUDA_SHORT} cupti_${CUDA_SHORT} cublas_dev_${CUDA_SHORT} cudart_${CUDA_SHORT} cufft_dev_${CUDA_SHORT} curand_dev_${CUDA_SHORT} cusolver_dev_${CUDA_SHORT} cusparse_dev_${CUDA_SHORT} thrust_${CUDA_SHORT} npp_dev_${CUDA_SHORT} nvrtc_dev_${CUDA_SHORT} nvml_dev_${CUDA_SHORT}\" -Wait -NoNewWindow"
echo "Done!"
rm -f "${CUDA_FILE}"
8 changes: 8 additions & 0 deletions .github/workflows/cuda/cu117-Linux-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

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

export FORCE_CUDA=1
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0;7.5;8.0;8.6"
15 changes: 15 additions & 0 deletions .github/workflows/cuda/cu117-Linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

OS=ubuntu2004

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/11.7.1/local_installers/cuda-repo-${OS}-11-7-local_11.7.1-515.65.01-1_amd64.deb
sudo dpkg -i cuda-repo-${OS}-11-7-local_11.7.1-515.65.01-1_amd64.deb
sudo cp /var/cuda-repo-${OS}-11-7-local/cuda-*-keyring.gpg /usr/share/keyrings/

sudo apt-get -qq update
sudo apt install cuda-nvcc-11-7 cuda-libraries-dev-11-7
sudo apt clean

rm -f https://developer.download.nvidia.com/compute/cuda/11.7.1/local_installers/cuda-repo-${OS}-11-7-local_11.7.1-515.65.01-1_amd64.deb
8 changes: 8 additions & 0 deletions .github/workflows/cuda/cu117-Windows-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

CUDA_HOME=/c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v11.3
PATH=${CUDA_HOME}/bin:$PATH
PATH=/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/MSBuild/15.0/Bin:$PATH

export FORCE_CUDA=1
export TORCH_CUDA_ARCH_LIST="6.0+PTX"
20 changes: 20 additions & 0 deletions .github/workflows/cuda/cu117-Windows.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# TODO We currently use CUDA 11.3 to build CUDA 11.7 Windows wheels

# Install NVIDIA drivers, see:
# https://github.com/pytorch/vision/blob/master/packaging/windows/internal/cuda_install.bat#L99-L102
curl -k -L "https://drive.google.com/u/0/uc?id=1injUyo3lnarMgWyRcXqKg4UGnN0ysmuq&export=download" --output "/tmp/gpu_driver_dlls.zip"
7z x "/tmp/gpu_driver_dlls.zip" -o"/c/Windows/System32"

export CUDA_SHORT=11.3
export CUDA_URL=https://developer.download.nvidia.com/compute/cuda/${CUDA_SHORT}.0/local_installers
export CUDA_FILE=cuda_${CUDA_SHORT}.0_465.89_win10.exe

# Install CUDA:
curl -k -L "${CUDA_URL}/${CUDA_FILE}" --output "${CUDA_FILE}"
echo ""
echo "Installing from ${CUDA_FILE}..."
PowerShell -Command "Start-Process -FilePath \"${CUDA_FILE}\" -ArgumentList \"-s nvcc_${CUDA_SHORT} cuobjdump_${CUDA_SHORT} nvprune_${CUDA_SHORT} cupti_${CUDA_SHORT} cublas_dev_${CUDA_SHORT} cudart_${CUDA_SHORT} cufft_dev_${CUDA_SHORT} curand_dev_${CUDA_SHORT} cusolver_dev_${CUDA_SHORT} cusparse_dev_${CUDA_SHORT} thrust_${CUDA_SHORT} npp_dev_${CUDA_SHORT} nvrtc_dev_${CUDA_SHORT} nvml_dev_${CUDA_SHORT}\" -Wait -NoNewWindow"
echo "Done!"
rm -f "${CUDA_FILE}"
8 changes: 8 additions & 0 deletions .github/workflows/cuda/cu118-Linux-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

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

export FORCE_CUDA=1
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0;7.5;8.0;8.6"
15 changes: 15 additions & 0 deletions .github/workflows/cuda/cu118-Linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

OS=ubuntu2004

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/11.8.0/local_installers/cuda-repo-${OS}-11-8-local_11.8.0-520.61.05-1_amd64.deb
sudo dpkg -i cuda-repo-${OS}-11-8-local_11.8.0-520.61.05-1_amd64.deb
sudo cp /var/cuda-repo-${OS}-11-8-local/cuda-*-keyring.gpg /usr/share/keyrings/

sudo apt-get -qq update
sudo apt install cuda-nvcc-11-8 cuda-libraries-dev-11-8
sudo apt clean

rm -f https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-${OS}-11-8-local_11.8.0-520.61.05-1_amd64.deb
8 changes: 8 additions & 0 deletions .github/workflows/cuda/cu118-Windows-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

CUDA_HOME=/c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v11.8
PATH=${CUDA_HOME}/bin:$PATH
PATH=/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/MSBuild/15.0/Bin:$PATH

export FORCE_CUDA=1
export TORCH_CUDA_ARCH_LIST="6.0+PTX"
Loading