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
f6aaacc1
Commit
f6aaacc1
authored
Mar 21, 2019
by
rusty1s
Browse files
only cpu fix
parent
5f913707
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
.travis.yml
.travis.yml
+2
-0
setup.py
setup.py
+8
-8
No files found.
.travis.yml
View file @
f6aaacc1
...
@@ -3,6 +3,7 @@ sudo: required
...
@@ -3,6 +3,7 @@ sudo: required
dist
:
trusty
dist
:
trusty
matrix
:
matrix
:
include
:
include
:
-
python
:
2.7
-
python
:
3.5
-
python
:
3.5
-
python
:
3.6
-
python
:
3.6
addons
:
addons
:
...
@@ -16,6 +17,7 @@ before_install:
...
@@ -16,6 +17,7 @@ before_install:
-
export CC="gcc-4.9"
-
export CC="gcc-4.9"
-
export CXX="g++-4.9"
-
export CXX="g++-4.9"
install
:
install
:
-
if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install https://download.pytorch.org/whl/cpu/torch-1.0.0-cp27-cp27mu-linux_x86_64.whl; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install https://download.pytorch.org/whl/cpu/torch-1.0.0-cp35-cp35m-linux_x86_64.whl; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install https://download.pytorch.org/whl/cpu/torch-1.0.0-cp35-cp35m-linux_x86_64.whl; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install https://download.pytorch.org/whl/cpu/torch-1.0.0-cp36-cp36m-linux_x86_64.whl; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install https://download.pytorch.org/whl/cpu/torch-1.0.0-cp36-cp36m-linux_x86_64.whl; fi
-
pip install pycodestyle
-
pip install pycodestyle
...
...
setup.py
View file @
f6aaacc1
...
@@ -3,14 +3,8 @@ from setuptools import setup, find_packages
...
@@ -3,14 +3,8 @@ from setuptools import setup, find_packages
import
torch
import
torch
from
torch.utils.cpp_extension
import
CppExtension
,
CUDAExtension
,
CUDA_HOME
from
torch.utils.cpp_extension
import
CppExtension
,
CUDAExtension
,
CUDA_HOME
__version__
=
'0.3.0'
url
=
'https://github.com/rusty1s/pytorch_sparse'
install_requires
=
[
'scipy'
]
setup_requires
=
[
'pytest-runner'
]
tests_require
=
[
'pytest'
,
'pytest-cov'
]
ext_modules
=
[
CppExtension
(
'torch_sparse.spspmm_cpu'
,
[
'cpu/spspmm.cpp'
])]
ext_modules
=
[
CppExtension
(
'torch_sparse.spspmm_cpu'
,
[
'cpu/spspmm.cpp'
])]
cmdclass
=
{}
cmdclass
=
{
'build_ext'
:
torch
.
utils
.
cpp_extension
.
BuildExtension
}
if
CUDA_HOME
is
not
None
:
if
CUDA_HOME
is
not
None
:
if
platform
.
system
()
==
'Windows'
:
if
platform
.
system
()
==
'Windows'
:
...
@@ -26,7 +20,13 @@ if CUDA_HOME is not None:
...
@@ -26,7 +20,13 @@ if CUDA_HOME is not None:
CUDAExtension
(
'torch_sparse.unique_cuda'
,
CUDAExtension
(
'torch_sparse.unique_cuda'
,
[
'cuda/unique.cpp'
,
'cuda/unique_kernel.cu'
]),
[
'cuda/unique.cpp'
,
'cuda/unique_kernel.cu'
]),
]
]
cmdclass
[
'build_ext'
]
=
torch
.
utils
.
cpp_extension
.
BuildExtension
__version__
=
'0.3.0'
url
=
'https://github.com/rusty1s/pytorch_sparse'
install_requires
=
[
'scipy'
]
setup_requires
=
[
'pytest-runner'
]
tests_require
=
[
'pytest'
,
'pytest-cov'
]
setup
(
setup
(
name
=
'torch_sparse'
,
name
=
'torch_sparse'
,
...
...
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