From dd76bef3c69f763c8e94233c68b787ac28bfd2f7 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Sat, 15 Aug 2020 16:32:12 +0200 Subject: Fast build flag. --- geom_matching/wasserstein/mpi/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3