Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Reinecke
pypocketfft
Commits
016fa39b
Commit
016fa39b
authored
May 29, 2019
by
Martin Reinecke
Browse files
disable OpenMP on OSX again
parent
87b07cf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
016fa39b
...
@@ -18,10 +18,10 @@ python_module_link_args = []
...
@@ -18,10 +18,10 @@ python_module_link_args = []
if
sys
.
platform
==
'darwin'
:
if
sys
.
platform
==
'darwin'
:
import
distutils.sysconfig
import
distutils.sysconfig
extra_compile_args
+=
[
'--stdlib=libc++'
,
'-mmacosx-version-min=10.9'
,
'-openmp'
]
extra_compile_args
+=
[
'--stdlib=libc++'
,
'-mmacosx-version-min=10.9'
]
vars
=
distutils
.
sysconfig
.
get_config_vars
()
vars
=
distutils
.
sysconfig
.
get_config_vars
()
vars
[
'LDSHARED'
]
=
vars
[
'LDSHARED'
].
replace
(
'-bundle'
,
''
)
vars
[
'LDSHARED'
]
=
vars
[
'LDSHARED'
].
replace
(
'-bundle'
,
''
)
python_module_link_args
+=
[
'-bundle'
,
'-openmp'
]
python_module_link_args
+=
[
'-bundle'
]
else
:
else
:
extra_compile_args
+=
[
'-DPOCKETFFT_OPENMP'
,
'-fopenmp'
,
'-Wfatal-errors'
,
'-Wfloat-conversion'
,
'-Wsign-conversion'
,
'-Wconversion'
,
'-W'
,
'-Wall'
,
'-Wstrict-aliasing=2'
,
'-Wwrite-strings'
,
'-Wredundant-decls'
,
'-Woverloaded-virtual'
,
'-Wcast-qual'
,
'-Wcast-align'
,
'-Wpointer-arith'
]
extra_compile_args
+=
[
'-DPOCKETFFT_OPENMP'
,
'-fopenmp'
,
'-Wfatal-errors'
,
'-Wfloat-conversion'
,
'-Wsign-conversion'
,
'-Wconversion'
,
'-W'
,
'-Wall'
,
'-Wstrict-aliasing=2'
,
'-Wwrite-strings'
,
'-Wredundant-decls'
,
'-Woverloaded-virtual'
,
'-Wcast-qual'
,
'-Wcast-align'
,
'-Wpointer-arith'
]
python_module_link_args
+=
[
'-march=native'
,
'-Wl,-rpath,$ORIGIN'
,
'-fopenmp'
]
python_module_link_args
+=
[
'-march=native'
,
'-Wl,-rpath,$ORIGIN'
,
'-fopenmp'
]
...
...
Write
Preview
Supports
Markdown
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