Commit 63c1acfb authored by rusty1s's avatar rusty1s
Browse files

update

parent a1564ab8
...@@ -12,21 +12,23 @@ jobs: ...@@ -12,21 +12,23 @@ jobs:
matrix: matrix:
os: [ubuntu-18.04, macos-10.15, windows-2019] os: [ubuntu-18.04, macos-10.15, windows-2019]
python-version: ['3.7', '3.8', '3.9', '3.10'] python-version: ['3.7', '3.8', '3.9', '3.10']
torch-version: [1.11.0, 1.12.0] torch-version: [1.13.0] # [1.12.0, 1.13.0]
cuda-version: ['cpu', 'cu102', 'cu113', 'cu115', 'cu116'] cuda-version: ['cpu', 'cu102', 'cu113', 'cu116', 'cu117']
exclude: exclude:
- torch-version: 1.11.0
cuda-version: 'cu116'
- torch-version: 1.12.0 - torch-version: 1.12.0
cuda-version: 'cu115' cuda-version: 'cu117'
- torch-version: 1.13.0
cuda-version: 'cu102'
- torch-version: 1.13.0
cuda-version: 'cu113'
- os: macos-10.15 - os: macos-10.15
cuda-version: 'cu102' cuda-version: 'cu102'
- os: macos-10.15 - os: macos-10.15
cuda-version: 'cu113' cuda-version: 'cu113'
- os: macos-10.15
cuda-version: 'cu115'
- os: macos-10.15 - os: macos-10.15
cuda-version: 'cu116' cuda-version: 'cu116'
- os: macos-10.15
cuda-version: 'cu117'
- os: windows-2019 - os: windows-2019
cuda-version: 'cu102' cuda-version: 'cu102'
- os: windows-2019 # Complains about CUDA mismatch. - os: windows-2019 # Complains about CUDA mismatch.
......
...@@ -12,21 +12,19 @@ jobs: ...@@ -12,21 +12,19 @@ jobs:
matrix: matrix:
os: [ubuntu-18.04, macos-10.15, windows-2019] os: [ubuntu-18.04, macos-10.15, windows-2019]
python-version: ['3.7', '3.8', '3.9', '3.10'] python-version: ['3.7', '3.8', '3.9', '3.10']
torch-version: [1.11.0, 1.12.0] torch-version: [1.13.0] # [1.12.0, 1.13.0]
cuda-version: ['cpu', 'cu102', 'cu113', 'cu115', 'cu116'] cuda-version: ['cpu', 'cu102', 'cu113', 'cu116', 'cu117']
exclude: exclude:
- torch-version: 1.11.0
cuda-version: 'cu116'
- torch-version: 1.12.0 - torch-version: 1.12.0
cuda-version: 'cu115' cuda-version: 'cu117'
- os: macos-10.15 - os: macos-10.15
cuda-version: 'cu102' cuda-version: 'cu102'
- os: macos-10.15 - os: macos-10.15
cuda-version: 'cu113' cuda-version: 'cu113'
- os: macos-10.15
cuda-version: 'cu115'
- os: macos-10.15 - os: macos-10.15
cuda-version: 'cu116' cuda-version: 'cu116'
- os: macos-10.15
cuda-version: 'cu117'
- os: windows-2019 - os: windows-2019
cuda-version: 'cu102' cuda-version: 'cu102'
- os: windows-2019 # Complains about CUDA mismatch. - os: windows-2019 # Complains about CUDA mismatch.
......
#!/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
#!/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"
#!/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"
#!/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}"
...@@ -32,7 +32,7 @@ jobs: ...@@ -32,7 +32,7 @@ jobs:
strategy: strategy:
matrix: matrix:
torch-version: [1.12.0] torch-version: [1.13.0]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
......
...@@ -16,7 +16,7 @@ jobs: ...@@ -16,7 +16,7 @@ jobs:
matrix: matrix:
os: [ubuntu-latest, windows-latest] os: [ubuntu-latest, windows-latest]
python-version: [3.7] python-version: [3.7]
torch-version: [1.11.0, 1.12.0] torch-version: [1.12.0, 1.13.0]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
......
...@@ -37,41 +37,40 @@ conda install pytorch-spline-conv -c pyg ...@@ -37,41 +37,40 @@ conda install pytorch-spline-conv -c pyg
We alternatively provide pip wheels for all major OS/PyTorch/CUDA combinations, see [here](https://data.pyg.org/whl). We alternatively provide pip wheels for all major OS/PyTorch/CUDA combinations, see [here](https://data.pyg.org/whl).
#### PyTorch 1.12 #### PyTorch 1.13
To install the binaries for PyTorch 1.12.0, simply run To install the binaries for PyTorch 1.13.0, simply run
``` ```
pip install torch-spline-conv -f https://data.pyg.org/whl/torch-1.12.0+${CUDA}.html pip install torch-spline-conv -f https://data.pyg.org/whl/torch-1.12.0+${CUDA}.html
``` ```
where `${CUDA}` should be replaced by either `cpu`, `cu102`, `cu113`, or `cu116` depending on your PyTorch installation. where `${CUDA}` should be replaced by either `cpu`, `cu102`, `cu113`, `cu116`, or `cu117` depending on your PyTorch installation.
| | `cpu` | `cu102` | `cu113` | `cu116` |
|-------------|-------|---------|---------|---------|
| **Linux** | ✅ | ✅ | ✅ | ✅ |
| **Windows** | ✅ | | ✅ | ✅ |
| **macOS** | ✅ | | | |
| | `cpu` | `cu102` | `cu113` | `cu116` | `cu117` |
|-------------|-------|---------|---------|---------|---------|
| **Linux** | ✅ | ✅ | ✅ | ✅ | ✅ |
| **Windows** | ✅ | | ✅ | ✅ | ✅ |
| **macOS** | ✅ | | | | |
#### PyTorch 1.11 #### PyTorch 1.12
To install the binaries for PyTorch 1.11.0, simply run To install the binaries for PyTorch 1.12.0, simply run
``` ```
pip install torch-spline-conv -f https://data.pyg.org/whl/torch-1.11.0+${CUDA}.html pip install torch-spline-conv -f https://data.pyg.org/whl/torch-1.12.0+${CUDA}.html
``` ```
where `${CUDA}` should be replaced by either `cpu`, `cu102`, `cu113`, or `cu115` depending on your PyTorch installation. where `${CUDA}` should be replaced by either `cpu`, `cu102`, `cu113`, or `cu116` depending on your PyTorch installation.
| | `cpu` | `cu102` | `cu113` | `cu115` | | | `cpu` | `cu102` | `cu113` | `cu116` |
|-------------|-------|---------|---------|---------| |-------------|-------|---------|---------|---------|
| **Linux** | ✅ | ✅ | ✅ | ✅ | | **Linux** | ✅ | ✅ | ✅ | ✅ |
| **Windows** | ✅ | | ✅ | ✅ | | **Windows** | ✅ | | ✅ | ✅ |
| **macOS** | ✅ | | | | | **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, and PyTorch 1.10.0/1.10.1/1.10.2 (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 and PyTorch 1.11.0 (following the same procedure).
For older versions, you might need to explicitly specify the latest supported version number in order to prevent a manual installation from source. 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). You can look up the latest supported version number [here](https://data.pyg.org/whl).
### From source ### From source
......
``` ```
./build_conda.sh 3.9 1.12.0 cu113 # python, pytorch and cuda version ./build_conda.sh 3.9 1.13.0 cu113 # python, pytorch and cuda version
``` ```
...@@ -10,8 +10,15 @@ if [ "${CUDA_VERSION}" = "cpu" ]; then ...@@ -10,8 +10,15 @@ if [ "${CUDA_VERSION}" = "cpu" ]; then
export CONDA_CUDATOOLKIT_CONSTRAINT="cpuonly # [not osx]" export CONDA_CUDATOOLKIT_CONSTRAINT="cpuonly # [not osx]"
else else
case $CUDA_VERSION in case $CUDA_VERSION in
cu117)
export CONDA_CUDATOOLKIT_CONSTRAINT="pytorch-cuda==11.7.*"
;;
cu116) cu116)
export CONDA_CUDATOOLKIT_CONSTRAINT="cudatoolkit==11.6.*" if [ "${TORCH_VERSION}" = "1.12.0" ]; then
export CONDA_CUDATOOLKIT_CONSTRAINT="cudatoolkit==11.6.*"
else
export CONDA_CUDATOOLKIT_CONSTRAINT="pytorch-cuda==11.6.*"
fi
;; ;;
cu115) cu115)
export CONDA_CUDATOOLKIT_CONSTRAINT="cudatoolkit==11.5.*" export CONDA_CUDATOOLKIT_CONSTRAINT="cudatoolkit==11.5.*"
...@@ -39,7 +46,7 @@ echo "PyTorch $TORCH_VERSION+$CUDA_VERSION" ...@@ -39,7 +46,7 @@ echo "PyTorch $TORCH_VERSION+$CUDA_VERSION"
echo "- $CONDA_PYTORCH_CONSTRAINT" echo "- $CONDA_PYTORCH_CONSTRAINT"
echo "- $CONDA_CUDATOOLKIT_CONSTRAINT" echo "- $CONDA_CUDATOOLKIT_CONSTRAINT"
if [ "${CUDA_VERSION}" = "cu116" ]; then if [ "${TORCH_VERSION}" = "1.12.0" ] && [ "${CUDA_VERSION}" = "cu116" ]; then
conda build . -c pytorch -c default -c nvidia -c conda-forge --output-folder "$HOME/conda-bld" conda build . -c pytorch -c default -c nvidia -c conda-forge --output-folder "$HOME/conda-bld"
else else
conda build . -c pytorch -c default -c nvidia --output-folder "$HOME/conda-bld" conda build . -c pytorch -c default -c nvidia --output-folder "$HOME/conda-bld"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment