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
072a17c4
Commit
072a17c4
authored
Jan 17, 2020
by
rusty1s
Browse files
fix
parent
bc522dd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
setup.py
setup.py
+4
-3
No files found.
setup.py
View file @
072a17c4
...
...
@@ -21,9 +21,8 @@ cmdclass = {'build_ext': torch.utils.cpp_extension.BuildExtension}
ext_modules
=
[]
exts
=
[
e
.
split
(
osp
.
sep
)[
-
1
][:
-
4
]
for
e
in
glob
(
osp
.
join
(
'cpu'
,
'*.cpp'
))]
ext_modules
+=
[
CppExtension
(
f
'torch_sparse.
{
ext
}
_cpu'
,
[
f
'cpu/
{
ext
}
.cpp'
],
extra_compile_args
=
cxx_extra_compile_args
)
for
ext
in
exts
CppExtension
(
f
'torch_sparse.
{
ext
}
_cpu'
,
[
f
'cpu/
{
ext
}
.cpp'
],
extra_compile_args
=
cxx_extra_compile_args
)
for
ext
in
exts
]
if
CUDA_HOME
is
not
None
and
'--cpu'
not
in
argv
:
...
...
@@ -44,6 +43,8 @@ if CUDA_HOME is not None and '--cpu' not in argv:
extra_link_args
=
extra_link_args
,
)
for
ext
in
exts
]
if
'--cpu'
in
argv
:
argv
.
remove
(
'--cpu'
)
__version__
=
'0.4.3'
url
=
'https://github.com/rusty1s/pytorch_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