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-sparse
Commits
8d59ca6f
Commit
8d59ca6f
authored
Aug 21, 2018
by
rusty1s
Browse files
travis gcc+4.9
parent
8abdc5f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
.travis.yml
.travis.yml
+10
-0
setup.py
setup.py
+4
-4
No files found.
.travis.yml
View file @
8d59ca6f
...
@@ -6,6 +6,16 @@ matrix:
...
@@ -6,6 +6,16 @@ matrix:
-
python
:
2.7
-
python
:
2.7
-
python
:
3.5
-
python
:
3.5
-
python
:
3.6
-
python
:
3.6
addons
:
apt
:
sources
:
-
ubuntu-toolchain-r-test
packages
:
-
gcc-4.9
-
g++-4.9
before_install
:
-
export CC="gcc-4.9"
-
export CXX="g++-4.9"
install
:
install
:
-
if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp35-cp35m-linux_x86_64.whl; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp35-cp35m-linux_x86_64.whl; fi
...
...
setup.py
View file @
8d59ca6f
...
@@ -14,10 +14,10 @@ cmdclass = {}
...
@@ -14,10 +14,10 @@ cmdclass = {}
if
torch
.
cuda
.
is_available
():
if
torch
.
cuda
.
is_available
():
ext_modules
+=
[
ext_modules
+=
[
CUDAExtension
(
CUDAExtension
(
'spspmm_cuda'
,
[
'cuda/spspmm.cpp'
,
'cuda/spspmm_kernel.cu'
],
'spspmm_cuda'
,
extra_compile_args
=
{
[
'cuda/spspmm.cpp'
,
'cuda/spspmm_kernel.cu'
],
'nvcc'
:
[
'-l
cusparse'
]
extra_link_args
=
[
'-l'
,
'
cusparse'
]
,
}
)
)
]
]
cmdclass
[
'build_ext'
]
=
BuildExtension
cmdclass
[
'build_ext'
]
=
BuildExtension
...
...
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