Skip to content

Commit

Permalink
remove O3 flag from Cython as it results in a shared object that segf…
Browse files Browse the repository at this point in the history
…aults (sometimes)
  • Loading branch information
derNarr committed Sep 17, 2023
1 parent 28cb7dc commit 25f614b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@

ndl_parallel = Extension("pyndl.ndl_parallel",
["pyndl/ndl_parallel.pyx"],
extra_compile_args=['-O3'],
include_dirs=[numpy.get_include()])
ndl_openmp = Extension("pyndl.ndl_openmp",
["pyndl/ndl_openmp.pyx"],
extra_compile_args=['-O3', '-fopenmp'],
extra_compile_args=['-fopenmp'],
extra_link_args=['-fopenmp'],
include_dirs=[numpy.get_include()])
corr_parallel = Extension("pyndl.correlation_openmp",
["pyndl/correlation_openmp.pyx"],
extra_compile_args=['-O3', '-fopenmp'],
extra_link_args=['-O3', '-fopenmp'],
extra_compile_args=['-fopenmp'],
extra_link_args=['-fopenmp'],
include_dirs=[numpy.get_include()])

extensions = []
Expand Down

0 comments on commit 25f614b

Please sign in to comment.