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
839dd6a6
Commit
839dd6a6
authored
Feb 12, 2021
by
rusty1s
Browse files
reduce shared library file size
parent
46dac04f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
setup.py
setup.py
+3
-3
No files found.
setup.py
View file @
839dd6a6
...
@@ -35,8 +35,8 @@ def get_extensions():
...
@@ -35,8 +35,8 @@ def get_extensions():
define_macros
+=
[(
'MTMETIS_64BIT_WEIGHTS'
,
None
)]
define_macros
+=
[(
'MTMETIS_64BIT_WEIGHTS'
,
None
)]
define_macros
+=
[(
'MTMETIS_64BIT_PARTITIONS'
,
None
)]
define_macros
+=
[(
'MTMETIS_64BIT_PARTITIONS'
,
None
)]
libraries
+=
[
'mtmetis'
,
'wildriver'
]
libraries
+=
[
'mtmetis'
,
'wildriver'
]
extra_compile_args
=
{
'cxx'
:
[]}
extra_compile_args
=
{
'cxx'
:
[
'-O2'
]}
extra_link_args
=
[]
extra_link_args
=
[
'-s'
]
info
=
parallel_info
()
info
=
parallel_info
()
if
'parallel backend: OpenMP'
in
info
and
'OpenMP not found'
not
in
info
:
if
'parallel backend: OpenMP'
in
info
and
'OpenMP not found'
not
in
info
:
...
@@ -53,7 +53,7 @@ def get_extensions():
...
@@ -53,7 +53,7 @@ def get_extensions():
define_macros
+=
[(
'WITH_CUDA'
,
None
)]
define_macros
+=
[(
'WITH_CUDA'
,
None
)]
nvcc_flags
=
os
.
getenv
(
'NVCC_FLAGS'
,
''
)
nvcc_flags
=
os
.
getenv
(
'NVCC_FLAGS'
,
''
)
nvcc_flags
=
[]
if
nvcc_flags
==
''
else
nvcc_flags
.
split
(
' '
)
nvcc_flags
=
[]
if
nvcc_flags
==
''
else
nvcc_flags
.
split
(
' '
)
nvcc_flags
+=
[
'-arch=sm_35'
,
'--expt-relaxed-constexpr'
]
nvcc_flags
+=
[
'-arch=sm_35'
,
'--expt-relaxed-constexpr'
,
'-O2'
]
extra_compile_args
[
'nvcc'
]
=
nvcc_flags
extra_compile_args
[
'nvcc'
]
=
nvcc_flags
if
sys
.
platform
==
'win32'
:
if
sys
.
platform
==
'win32'
:
...
...
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