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
33e81aa6
Commit
33e81aa6
authored
Oct 19, 2018
by
Shagun Sodhani
Browse files
updated setup.py as per @rusty1s's suggestion
parent
92082f98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
setup.py
setup.py
+4
-7
No files found.
setup.py
View file @
33e81aa6
...
...
@@ -13,13 +13,10 @@ cmdclass = {}
if
torch
.
cuda
.
is_available
():
ext_modules
+=
[
CUDAExtension
(
'spspmm_cuda'
,
[
'cuda/spspmm.cpp'
,
'cuda/spspmm_kernel.cu'
],
extra_link_args
=
[
'-lcusparse'
],
),
CUDAExtension
(
'unique_cuda'
,
[
'cuda/unique.cpp'
,
'cuda/unique_kernel.cu'
])
CUDAExtension
(
'spspmm_cuda'
,
[
'cuda/spspmm.cpp'
,
'cuda/spspmm_kernel.cu'
],
extra_link_args
=
[
'-l'
,
'cusparse'
]
)
]
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