diff options
author | Gard Spreemann <gspr@nonempty.org> | 2020-08-15 16:32:12 +0200 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2020-08-15 16:32:12 +0200 |
commit | dd76bef3c69f763c8e94233c68b787ac28bfd2f7 (patch) | |
tree | 129e752376625552c738a28fca362ca77d1d8bc5 | |
parent | 4882ac5689aaf32ad494d0731f7d996cd1d70e08 (diff) |
Fast build flag.gspr/mpi
-rw-r--r-- | geom_matching/wasserstein/mpi/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/geom_matching/wasserstein/mpi/CMakeLists.txt b/geom_matching/wasserstein/mpi/CMakeLists.txt index 167420a..aaaf8aa 100644 --- a/geom_matching/wasserstein/mpi/CMakeLists.txt +++ b/geom_matching/wasserstein/mpi/CMakeLists.txt @@ -9,6 +9,12 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug") remove_definitions(-DNDEBUG) endif() +if(CMAKE_BUILD_TYPE STREQUAL "Fast") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -march=native -ffast-math") + add_definitions(-DNDEBUG) + remove_definitions(-DDEBUG) +endif() + if(SILENCE) message(WARNING "Silence flag currently ignored.") add_definitions(-DSILENCE) |