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
96df2903
Commit
96df2903
authored
Feb 23, 2020
by
rusty1s
Browse files
fix
parent
bd7a732a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
setup.py
setup.py
+2
-2
No files found.
setup.py
View file @
96df2903
...
@@ -21,7 +21,7 @@ def get_extensions():
...
@@ -21,7 +21,7 @@ def get_extensions():
Extension
=
CppExtension
Extension
=
CppExtension
define_macros
=
[]
define_macros
=
[]
extra_compile_args
=
{
'cxx'
:
[]}
extra_compile_args
=
{
'cxx'
:
[]}
extra_link_args
=
[]
extra_link_args
=
[
'metis.lib'
]
if
WITH_CUDA
:
if
WITH_CUDA
:
Extension
=
CUDAExtension
Extension
=
CUDAExtension
...
@@ -32,7 +32,7 @@ def get_extensions():
...
@@ -32,7 +32,7 @@ def get_extensions():
extra_compile_args
[
'nvcc'
]
=
nvcc_flags
extra_compile_args
[
'nvcc'
]
=
nvcc_flags
if
sys
.
platform
==
'win32'
:
if
sys
.
platform
==
'win32'
:
extra_link_args
+=
[
'cusparse.lib'
,
'metis.lib'
]
extra_link_args
+=
[
'cusparse.lib'
]
else
:
else
:
extra_link_args
+=
[
'-lcusparse'
,
'-l'
,
'cusparse'
]
extra_link_args
+=
[
'-lcusparse'
,
'-l'
,
'cusparse'
]
...
...
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