diff options
Diffstat (limited to 'geom_matching/wasserstein')
-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) |