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-cluster
Commits
b9d5d863
Commit
b9d5d863
authored
Oct 31, 2020
by
rusty1s
Browse files
update
parent
14c7ac44
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
.travis.yml
.travis.yml
+5
-5
script/cuda.sh
script/cuda.sh
+2
-1
script/rename_wheel.py
script/rename_wheel.py
+1
-1
No files found.
.travis.yml
View file @
b9d5d863
...
@@ -17,27 +17,27 @@ env:
...
@@ -17,27 +17,27 @@ env:
# - PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu110
# - PYTHON_VERSION=3.6 TORCH_VERSION=1.7.0 IDX=cu110
# - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cpu
# - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cpu
# - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu92
# - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu92
-
PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu101
#
- PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu101
# - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu102
# - PYTHON_VERSION=3.6 TORCH_VERSION=1.6.0 IDX=cu102
# Python 3.7
# Python 3.7
# - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cpu
# - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cpu
# - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu92
# - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu92
-
PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu101
#
- PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu101
# - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu102
# - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu102
# - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu110
# - PYTHON_VERSION=3.7 TORCH_VERSION=1.7.0 IDX=cu110
# - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cpu
# - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cpu
# - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu92
# - 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=cu101
# - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu102
# - PYTHON_VERSION=3.7 TORCH_VERSION=1.6.0 IDX=cu102
# Python 3.8
# Python 3.8
# - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cpu
# - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cpu
# - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu92
# - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu92
-
PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu101
#
- PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu101
# - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu102
# - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu102
# - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu110
# - PYTHON_VERSION=3.8 TORCH_VERSION=1.7.0 IDX=cu110
# - PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cpu
# - 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=cu92
-
PYTHON_VERSION=3.8 TORCH_VERSION=1.6.0 IDX=cu101
#
- 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.6.0 IDX=cu102
jobs
:
jobs
:
...
...
script/cuda.sh
View file @
b9d5d863
...
@@ -15,7 +15,7 @@ fi
...
@@ -15,7 +15,7 @@ fi
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"linux"
]
&&
[
"
$IDX
"
=
"cu101"
]
;
then
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"linux"
]
&&
[
"
$IDX
"
=
"cu101"
]
;
then
export
IDX
=
cu101
export
IDX
=
cu101
export
CUDA_SHORT
=
10.1
export
CUDA_SHORT
=
10.1
export
CUDA
=
10.1.
105
-1
export
CUDA
=
10.1.
243
-1
export
UBUNTU_VERSION
=
ubuntu1804
export
UBUNTU_VERSION
=
ubuntu1804
export
CUBLAS
=
libcublas-dev
export
CUBLAS
=
libcublas-dev
export
TOOLKIT
=
"cudatoolkit=
${
CUDA_SHORT
}
"
export
TOOLKIT
=
"cudatoolkit=
${
CUDA_SHORT
}
"
...
@@ -84,6 +84,7 @@ if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${IDX}" != "cpu" ] && [ "${IDX}" != "
...
@@ -84,6 +84,7 @@ if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${IDX}" != "cpu" ] && [ "${IDX}" != "
wget
-nv
"https://developer.download.nvidia.com/compute/cuda/repos/
${
UBUNTU_VERSION
}
/x86_64/7fa2af80.pub"
wget
-nv
"https://developer.download.nvidia.com/compute/cuda/repos/
${
UBUNTU_VERSION
}
/x86_64/7fa2af80.pub"
sudo
apt-key add 7fa2af80.pub
sudo
apt-key add 7fa2af80.pub
sudo
apt update
-qq
sudo
apt update
-qq
sudo
apt search cuda
sudo
apt
install
-y
"cuda-core-
${
CUDA_SHORT
/./-
}
"
"cuda-cudart-dev-
${
CUDA_SHORT
/./-
}
"
"
${
CUBLAS
}
"
"cuda-cusparse-dev-
${
CUDA_SHORT
/./-
}
"
"cuda-cusolver-dev-
${
CUDA_SHORT
/./-
}
"
"cuda-curand-dev-
${
CUDA_SHORT
/./-
}
"
sudo
apt
install
-y
"cuda-core-
${
CUDA_SHORT
/./-
}
"
"cuda-cudart-dev-
${
CUDA_SHORT
/./-
}
"
"
${
CUBLAS
}
"
"cuda-cusparse-dev-
${
CUDA_SHORT
/./-
}
"
"cuda-cusolver-dev-
${
CUDA_SHORT
/./-
}
"
"cuda-curand-dev-
${
CUDA_SHORT
/./-
}
"
sudo
apt clean
sudo
apt clean
CUDA_HOME
=
/usr/local/cuda-
${
CUDA_SHORT
}
CUDA_HOME
=
/usr/local/cuda-
${
CUDA_SHORT
}
...
...
script/rename_wheel.py
View file @
b9d5d863
...
@@ -5,7 +5,7 @@ import glob
...
@@ -5,7 +5,7 @@ import glob
import
shutil
import
shutil
idx
=
sys
.
argv
[
1
]
idx
=
sys
.
argv
[
1
]
assert
idx
in
[
'cpu'
,
'cu92'
,
'cu101'
,
'cu102'
]
assert
idx
in
[
'cpu'
,
'cu92'
,
'cu101'
,
'cu102'
,
'cu110'
]
dist_dir
=
osp
.
join
(
osp
.
dirname
(
osp
.
abspath
(
__file__
)),
'..'
,
'dist'
)
dist_dir
=
osp
.
join
(
osp
.
dirname
(
osp
.
abspath
(
__file__
)),
'..'
,
'dist'
)
wheels
=
glob
.
glob
(
osp
.
join
(
'dist'
,
'**'
,
'*.whl'
),
recursive
=
True
)
wheels
=
glob
.
glob
(
osp
.
join
(
'dist'
,
'**'
,
'*.whl'
),
recursive
=
True
)
...
...
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