Commit e38f66e5 authored by rusty1s's avatar rusty1s
Browse files

add device

parent 403b6d39
...@@ -10,12 +10,12 @@ env: ...@@ -10,12 +10,12 @@ env:
jobs: jobs:
include: include:
# - name: linux/cpu - name: linux/cpu
# os: linux os: linux
# language: python language: python
# python: 3.7.6 python: 3.7.6
# env: env:
# - TORCH=${TORCH_VERSION}+cpu - DEVICE=cpu
# - name: linux/cu92 # - name: linux/cu92
# os: linux # os: linux
# language: python # language: python
...@@ -38,17 +38,16 @@ jobs: ...@@ -38,17 +38,16 @@ jobs:
# - UBUNTU_VERSION=ubuntu1804 # - UBUNTU_VERSION=ubuntu1804
# - CUBLAS=cuda-cublas-dev-10-0 # - CUBLAS=cuda-cublas-dev-10-0
# - TORCH=${TORCH_VERSION}+cu100 # - TORCH=${TORCH_VERSION}+cu100
- name: linux/cu101 # - name: linux/cu101
os: linux # os: linux
language: python # language: python
python: 3.7.6 # python: 3.7.6
env: # env:
- FORCE_CUDA=1 # - DEVICE=cu101
- CUDA_SHORT=10.1 # - CUDA_SHORT=10.1
- CUDA=10.1.105-1 # - CUDA=10.1.105-1
- UBUNTU_VERSION=ubuntu1804 # - UBUNTU_VERSION=ubuntu1804
- CUBLAS=libcublas-dev # - CUBLAS=libcublas-dev
- TORCH=${TORCH_VERSION}
# - name: macosx/cpu # - name: macosx/cpu
# os: osx # os: osx
# osx_image: xcode11.3 # osx_image: xcode11.3
...@@ -100,7 +99,7 @@ jobs: ...@@ -100,7 +99,7 @@ jobs:
install: install:
- source script/install.sh - source script/install.sh
- pip3 install numpy - pip3 install numpy
- pip3 install torch==${TORCH} -f https://download.pytorch.org/whl/torch_stable.html - pip3 install torch==${TORCH}+${DEVICE} -f https://download.pytorch.org/whl/torch_stable.html
- pip3 install flake8 - pip3 install flake8
- pip3 install codecov - pip3 install codecov
- python3 setup.py install || python setup.py install - python3 setup.py install || python setup.py install
...@@ -122,6 +121,7 @@ deploy: ...@@ -122,6 +121,7 @@ deploy:
acl: public_read acl: public_read
on: on:
repo: rusty1s/pytorch_scatter repo: rusty1s/pytorch_scatter
branch: travis # tags: true
all_branches: true
notifications: notifications:
email: false email: false
#!/bin/bash #!/bin/bash
if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${FORCE_CUDA}" == "1" ]; then if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${DEVICE}" != "cpu" ]; then
INSTALLER=cuda-repo-${UBUNTU_VERSION}_${CUDA}_amd64.deb INSTALLER=cuda-repo-${UBUNTU_VERSION}_${CUDA}_amd64.deb
wget "http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/${INSTALLER}" wget "http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/${INSTALLER}"
sudo dpkg -i "${INSTALLER}" sudo dpkg -i "${INSTALLER}"
...@@ -15,7 +15,7 @@ if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${FORCE_CUDA}" == "1" ]; then ...@@ -15,7 +15,7 @@ if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${FORCE_CUDA}" == "1" ]; then
nvcc --version nvcc --version
fi fi
if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "${FORCE_CUDA}" == "1" ]; then if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "${DEVICE}" != "cpu" ]; then
wget "https://developer.nvidia.com/compute/cuda/${CUDA_SHORT}/Prod2/local_installers2/cuda_${CUDA}_win10" wget "https://developer.nvidia.com/compute/cuda/${CUDA_SHORT}/Prod2/local_installers2/cuda_${CUDA}_win10"
# ./cuda_${CUDA}_win10.exe # ./cuda_${CUDA}_win10.exe
fi 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