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-scatter
Commits
847995db
Unverified
Commit
847995db
authored
May 31, 2022
by
mszarma
Committed by
GitHub
May 31, 2022
Browse files
adding WITH_SYMBOLS env var (#300)
parent
77cfe4be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
setup.py
setup.py
+2
-1
No files found.
setup.py
View file @
847995db
...
@@ -24,6 +24,7 @@ if os.getenv('FORCE_ONLY_CPU', '0') == '1':
...
@@ -24,6 +24,7 @@ if os.getenv('FORCE_ONLY_CPU', '0') == '1':
suffices
=
[
'cpu'
]
suffices
=
[
'cpu'
]
BUILD_DOCS
=
os
.
getenv
(
'BUILD_DOCS'
,
'0'
)
==
'1'
BUILD_DOCS
=
os
.
getenv
(
'BUILD_DOCS'
,
'0'
)
==
'1'
WITH_SYMBOLS
=
os
.
getenv
(
'WITH_SYMBOLS'
,
'0'
)
==
'1'
def
get_extensions
():
def
get_extensions
():
...
@@ -37,7 +38,7 @@ def get_extensions():
...
@@ -37,7 +38,7 @@ def get_extensions():
extra_compile_args
=
{
'cxx'
:
[
'-O2'
]}
extra_compile_args
=
{
'cxx'
:
[
'-O2'
]}
if
not
os
.
name
==
'nt'
:
# Not on Windows:
if
not
os
.
name
==
'nt'
:
# Not on Windows:
extra_compile_args
[
'cxx'
]
+=
[
'-Wno-sign-compare'
]
extra_compile_args
[
'cxx'
]
+=
[
'-Wno-sign-compare'
]
extra_link_args
=
[
'-s'
]
extra_link_args
=
[]
if
WITH_SYMBOLS
else
[
'-s'
]
info
=
parallel_info
()
info
=
parallel_info
()
if
(
'backend: OpenMP'
in
info
and
'OpenMP not found'
not
in
info
if
(
'backend: OpenMP'
in
info
and
'OpenMP not found'
not
in
info
...
...
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