Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-scatter
Commits
e38f66e5
Commit
e38f66e5
authored
Feb 11, 2020
by
rusty1s
Browse files
add device
parent
403b6d39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
.travis.yml
.travis.yml
+19
-19
script/install.sh
script/install.sh
+2
-2
No files found.
.travis.yml
View file @
e38f66e5
...
@@ -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
script/install.sh
View file @
e38f66e5
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment