Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
one
spconv
Commits
fb8b4722
Commit
fb8b4722
authored
Nov 11, 2021
by
yan.yan
Browse files
fix a bug of openmp flag
parent
4f425eac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
spconv/csrc/sparse/cpu_core.py
spconv/csrc/sparse/cpu_core.py
+6
-2
No files found.
spconv/csrc/sparse/cpu_core.py
View file @
fb8b4722
...
@@ -27,5 +27,9 @@ class OMPLib(pccm.Class):
...
@@ -27,5 +27,9 @@ class OMPLib(pccm.Class):
else
:
else
:
self
.
build_meta
.
add_cflags
(
"g++"
,
"-fopenmp"
)
self
.
build_meta
.
add_cflags
(
"g++"
,
"-fopenmp"
)
self
.
build_meta
.
add_cflags
(
"clang++"
,
"-fopenmp"
)
self
.
build_meta
.
add_cflags
(
"clang++"
,
"-fopenmp"
)
self
.
build_meta
.
add_ldflags
(
"g++"
,
"-fopenmp"
)
if
"g++"
not
in
self
.
build_meta
.
compiler_to_ldflags
:
self
.
build_meta
.
add_ldflags
(
"clang++"
,
"-fopenmp"
)
self
.
build_meta
.
compiler_to_ldflags
[
"g++"
]
=
[]
self
.
build_meta
.
compiler_to_ldflags
[
"g++"
].
extend
([
"-fopenmp"
])
if
"clang++"
not
in
self
.
build_meta
.
compiler_to_ldflags
:
self
.
build_meta
.
compiler_to_ldflags
[
"clang++"
]
=
[]
self
.
build_meta
.
compiler_to_ldflags
[
"clang++"
].
extend
([
"-fopenmp"
])
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