Commit 065cf15b authored by rusty1s's avatar rusty1s
Browse files

test pytorch 1.6.0 build

parent f0e951cd
...@@ -8,47 +8,90 @@ os: ...@@ -8,47 +8,90 @@ os:
env: env:
global: global:
- CUDA_HOME=/usr/local/cuda - CUDA_HOME=/usr/local/cuda
jobs: jobs:
- TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cpu # Python 3.6
- TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu92 - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cpu
- TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu101 - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu92
- TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu102 - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu101
- TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cpu - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu102
- TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu92 - PYTHON_VERSION=3.6 TORCH_VERSION=1.5.0 IDX=cpu
- TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu101 - PYTHON_VERSION=3.6 TORCH_VERSION=1.5.0 IDX=cu92
- TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu102 - PYTHON_VERSION=3.6 TORCH_VERSION=1.5.0 IDX=cu101
- TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cpu - PYTHON_VERSION=3.6 TORCH_VERSION=1.5.0 IDX=cu102
- TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu92 # Python 3.7
- TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu101 - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cpu
- TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu102 - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu92
- PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu101
- PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu102
- PYTHON_VERSION=3.7 TORCH_VERSION=1.5.0 IDX=cpu
- PYTHON_VERSION=3.7 TORCH_VERSION=1.5.0 IDX=cu92
- PYTHON_VERSION=3.7 TORCH_VERSION=1.5.0 IDX=cu101
- PYTHON_VERSION=3.7 TORCH_VERSION=1.5.0 IDX=cu102
# Python 3.8
- PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cpu
- PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu92
- PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu101
- PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu102
- PYTHON_VERSION=3.8 TORCH_VERSION=1.5.0 IDX=cpu
- PYTHON_VERSION=3.8 TORCH_VERSION=1.5.0 IDX=cu92
- PYTHON_VERSION=3.8 TORCH_VERSION=1.5.0 IDX=cu101
- PYTHON_VERSION=3.8 TORCH_VERSION=1.5.0 IDX=cu102
jobs: jobs:
exclude: # Exclude *all* macOS CUDA jobs and Windows CUDA 9.2 jobs. # For daily builds, we only test on *Python 3.6* and *CUDA 10.2*.
- os: osx # For deployment, we exclude *all* macOS CUDA and Windows CUDA 9.2 jobs.
env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu92 exclude:
- os: osx # Python 3.6
env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu101 - if: not (tag is present or commit_message =~ ci-deploy) and os != osx
- os: osx env: PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cpu
env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu102 - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
- os: osx env: PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu92
env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu92 - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
- os: osx env: PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu101
env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu101 - if: os = osx
- os: osx env: PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu102
env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu102 - if: not (tag is present or commit_message =~ ci-deploy) and os != osx
- os: osx env: PYTHON_VERSION=3.6 TORCH_VERSION=1.5.0 IDX=cpu
env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu92 - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
- os: osx env: PYTHON_VERSION=3.6 TORCH_VERSION=1.5.0 IDX=cu92
env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu101 - if: not (tag is present or commit_message =~ ci-deploy) or os = osx
- os: osx env: PYTHON_VERSION=3.6 TORCH_VERSION=1.5.0 IDX=cu101
env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu102 - if: os = osx
- os: windows env: PYTHON_VERSION=3.6 TORCH_VERSION=1.5.0 IDX=cu102
env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.8 IDX=cu92 # Python 3.7
- os: windows - if: not (tag is present or commit_message =~ ci-deploy)
env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.7 IDX=cu92 env: PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cpu
- os: windows - if: not (tag is present or commit_message =~ ci-deploy) or os != linux
env: TORCH_VERSION=1.5.0 PYTHON_VERSION=3.6 IDX=cu92 env: PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu92
- if: not (tag is present or commit_message =~ ci-deploy) or os = osx
env: PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu101
- if: not (tag is present or commit_message =~ ci-deploy) or os = osx
env: PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu102
- if: not (tag is present or commit_message =~ ci-deploy)
env: PYTHON_VERSION=3.7 TORCH_VERSION=1.5.0 IDX=cpu
- if: not (tag is present or commit_message =~ ci-deploy) or os != linux
env: PYTHON_VERSION=3.7 TORCH_VERSION=1.5.0 IDX=cu92
- if: not (tag is present or commit_message =~ ci-deploy) or os = osx
env: PYTHON_VERSION=3.7 TORCH_VERSION=1.5.0 IDX=cu101
- if: not (tag is present or commit_message =~ ci-deploy) or os = osx
env: PYTHON_VERSION=3.7 TORCH_VERSION=1.5.0 IDX=cu102
# Python 3.8
- if: not (tag is present or commit_message =~ ci-deploy)
env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cpu
- if: not (tag is present or commit_message =~ ci-deploy) or os != linux
env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu92
- if: not (tag is present or commit_message =~ ci-deploy) or os = osx
env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu101
- if: not (tag is present or commit_message =~ ci-deploy) or os = osx
env: PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu102
- if: not (tag is present or commit_message =~ ci-deploy)
env: PYTHON_VERSION=3.8 TORCH_VERSION=1.5.0 IDX=cpu
- if: not (tag is present or commit_message =~ ci-deploy) or os != linux
env: PYTHON_VERSION=3.8 TORCH_VERSION=1.5.0 IDX=cu92
- if: not (tag is present or commit_message =~ ci-deploy) or os = osx
env: PYTHON_VERSION=3.8 TORCH_VERSION=1.5.0 IDX=cu101
- if: not (tag is present or commit_message =~ ci-deploy) or os = osx
env: PYTHON_VERSION=3.8 TORCH_VERSION=1.5.0 IDX=cu102
install: install:
- source script/gcc.sh - source script/gcc.sh
......
...@@ -25,6 +25,22 @@ The operator works on all floating point data types and is implemented both for ...@@ -25,6 +25,22 @@ The operator works on all floating point data types and is implemented both for
We provide pip wheels for all major OS/PyTorch/CUDA combinations, see [here](https://pytorch-geometric.com/whl). We provide pip wheels for all major OS/PyTorch/CUDA combinations, see [here](https://pytorch-geometric.com/whl).
#### PyTorch 1.6.0
To install the binaries for PyTorch 1.6.0, simply run
```
pip install torch-spline-conv==latest+${CUDA} -f https://pytorch-geometric.com/whl/torch-1.6.0.html
```
where `${CUDA}` should be replaced by either `cpu`, `cu92`, `cu101` or `cu102` depending on your PyTorch installation.
| | `cpu` | `cu92` | `cu101` | `cu102` |
|-------------|-------|--------|---------|---------|
| **Linux** | ✅ | ✅ | ✅ | ✅ |
| **Windows** | ✅ | ❌ | ✅ | ✅ |
| **macOS** | ✅ | | | |
#### PyTorch 1.5.0 #### PyTorch 1.5.0
To install the binaries for PyTorch 1.5.0, simply run To install the binaries for PyTorch 1.5.0, simply run
......
#!/bin/bash #!/bin/bash
# Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958 # Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958
if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "${IDX}" != "cpu" ]; then if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "${TORCH_VERSION}" = "1.5.0" ]; then
echo "Fix nvcc for PyTorch 1.5.0"
sed -i.bak -e 's/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/api/module.h sed -i.bak -e 's/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/api/module.h
sed -i.bak -e 's/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/runtime/argument_spec.h sed -i.bak -e 's/constexpr/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/runtime/argument_spec.h
sed -i.bak -e 's/return \*(this->value)/return \*((type\*)this->value)/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/pybind11/cast.h sed -i.bak -e 's/return \*(this->value)/return \*((type\*)this->value)/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/pybind11/cast.h
fi fi
# https://github.com/pytorch/pytorch/commit/d2e16dd888a9b5fd55bd475d4fcffb70f388d4f0
if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "${TORCH_VERSION}" = "1.6.0" ]; then
echo "Fix nvcc for PyTorch 1.6.0"
sed -i.bak -e 's/CONSTEXPR_EXCEPT_WIN_CUDA/const/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/jit/api/module.h
sed -i.bak -e 's/return \*(this->value)/return \*((type\*)this->value)/g' /c/tools/miniconda3/envs/test/lib/site-packages/torch/include/pybind11/cast.h
fi
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