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
afccb12e
Commit
afccb12e
authored
Aug 20, 2018
by
rusty1s
Browse files
adding cusparse as compile arg
parent
5836042b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
setup.py
setup.py
+5
-2
No files found.
setup.py
View file @
afccb12e
...
@@ -13,8 +13,11 @@ cmdclass = {}
...
@@ -13,8 +13,11 @@ cmdclass = {}
if
torch
.
cuda
.
is_available
():
if
torch
.
cuda
.
is_available
():
ext_modules
+=
[
ext_modules
+=
[
CUDAExtension
(
'spspmm_cuda'
,
CUDAExtension
(
[
'cuda/spspmm.cpp'
,
'cuda/spspmm_kernel.cu'
])
'spspmm_cuda'
,
[
'cuda/spspmm.cpp'
,
'cuda/spspmm_kernel.cu'
],
extra_compile_args
=
{
'nvcc'
:
[
'-lcusparse'
]
})
]
]
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