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
ea30e084
Commit
ea30e084
authored
Feb 22, 2020
by
rusty1s
Browse files
library
parent
1a297123
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
script/metis.sh
script/metis.sh
+2
-0
setup.py
setup.py
+1
-7
No files found.
script/metis.sh
View file @
ea30e084
...
@@ -12,6 +12,8 @@ if [ "${TRAVIS_OS_NAME}" != "windows" ]; then
...
@@ -12,6 +12,8 @@ if [ "${TRAVIS_OS_NAME}" != "windows" ]; then
make
make
else
else
./vsgen.bat
./vsgen.bat
ls
build
ls
build/windows
fi
fi
sudo
make
install
sudo
make
install
...
...
setup.py
View file @
ea30e084
import
os
import
os
import
os.path
as
osp
import
os.path
as
osp
import
sys
import
glob
import
glob
from
setuptools
import
setup
,
find_packages
from
setuptools
import
setup
,
find_packages
...
@@ -31,11 +30,6 @@ def get_extensions():
...
@@ -31,11 +30,6 @@ def get_extensions():
nvcc_flags
+=
[
'-arch=sm_35'
,
'--expt-relaxed-constexpr'
]
nvcc_flags
+=
[
'-arch=sm_35'
,
'--expt-relaxed-constexpr'
]
extra_compile_args
[
'nvcc'
]
=
nvcc_flags
extra_compile_args
[
'nvcc'
]
=
nvcc_flags
if
sys
.
platform
==
'win32'
:
extra_link_args
=
[
'cusparse.lib'
]
else
:
extra_link_args
=
[
'-lcusparse'
,
'-l'
,
'cusparse'
]
extensions_dir
=
osp
.
join
(
osp
.
dirname
(
osp
.
abspath
(
__file__
)),
'csrc'
)
extensions_dir
=
osp
.
join
(
osp
.
dirname
(
osp
.
abspath
(
__file__
)),
'csrc'
)
main_files
=
glob
.
glob
(
osp
.
join
(
extensions_dir
,
'*.cpp'
))
main_files
=
glob
.
glob
(
osp
.
join
(
extensions_dir
,
'*.cpp'
))
extensions
=
[]
extensions
=
[]
...
@@ -59,7 +53,7 @@ def get_extensions():
...
@@ -59,7 +53,7 @@ def get_extensions():
define_macros
=
define_macros
,
define_macros
=
define_macros
,
extra_compile_args
=
extra_compile_args
,
extra_compile_args
=
extra_compile_args
,
extra_link_args
=
extra_link_args
,
extra_link_args
=
extra_link_args
,
libraries
=
[
'metis'
],
libraries
=
[
'cusparse'
,
'metis'
],
)
)
extensions
+=
[
extension
]
extensions
+=
[
extension
]
...
...
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