Skip to content

Commit

Permalink
Add optimisation flag to setup.py build
Browse files Browse the repository at this point in the history
  • Loading branch information
romeric committed May 8, 2017
1 parent 23d0317 commit 71e70d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PostMeshPy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@

# Compiler arguments
if "clang++" in _cxx_compiler or ("c++" in _cxx_compiler and "darwin" in _os):
compiler_args = ["-std=c++11","-m64","-march=native","-mtune=native", "-ffp-contract=fast",
compiler_args = ["-O3","-std=c++11","-m64","-march=native","-mtune=native", "-ffp-contract=fast",
"-ffast-math", "-flto","-DNPY_NO_DEPRECATED_API", "-Wno-shorten-64-to-32"]
else:
compiler_args = ["-std=c++11","-m64","-march=native","-mtune=native", "-ffp-contract=fast",
compiler_args = ["-O3","-std=c++11","-m64","-march=native","-mtune=native", "-ffp-contract=fast",
"-mfpmath=sse","-ffast-math","-ftree-vectorize", "-finline-limit=100000",
"-funroll-loops","-finline-functions","-Wno-unused-function",
"-flto","-DNPY_NO_DEPRECATED_API","-Wno-cpp"]
Expand Down

0 comments on commit 71e70d1

Please # to comment.