diff options
author | Gard Spreemann <gard.spreemann@epfl.ch> | 2018-05-31 19:49:57 +0200 |
---|---|---|
committer | Gard Spreemann <gard.spreemann@epfl.ch> | 2018-06-26 15:46:23 +0200 |
commit | 288eb3a063a95c9487997976061f753f3ed319a3 (patch) | |
tree | 80451a8bbab52b27c915b70f5459eeebd5ac1517 /geom_matching/wasserstein/mpi/CMakeLists.txt | |
parent | 0c6aafa07857042e92857fec6969d0caf89e187e (diff) |
MPI-based version for computing many distances in parallel.
Diffstat (limited to 'geom_matching/wasserstein/mpi/CMakeLists.txt')
-rw-r--r-- | geom_matching/wasserstein/mpi/CMakeLists.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/geom_matching/wasserstein/mpi/CMakeLists.txt b/geom_matching/wasserstein/mpi/CMakeLists.txt new file mode 100644 index 0000000..10a77bf --- /dev/null +++ b/geom_matching/wasserstein/mpi/CMakeLists.txt @@ -0,0 +1,36 @@ +cmake_minimum_required(VERSION 2.8.8) + +project(hera_mpi) + +option(SILENCE "Turn off some warnings." OFF) + +if(CMAKE_BUILD_TYPE STREQUAL "Debug") + add_definitions(-DDEBUG) + remove_definitions(-DNDEBUG) +endif() + +if(SILENCE) + message(WARNING "Silence flag currently ignored.") + add_definitions(-DSILENCE) +endif(SILENCE) + +include(TestBigEndian) +test_big_endian(BIG_ENDIAN) +if(BIG_ENDIAN) + add_definitions(-DBIGENDIAN) +endif() + +find_package(MPI REQUIRED) +include_directories(${MPI_INCLUDE_PATH}) +link_directories(${MPI_LIBRARIES}) + +#find_package(Boost REQUIRED) # Should set version and specific components. +#include_directories(${Boost_INCLUDE_DIRS}) + +include_directories("../include") + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${MPI_COMPILE_FLAGS} -Wall -pedantic -Wextra -std=c++14") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${MPI_LINK_FLAGS}") + +add_executable(hera_mpi main.cpp) +target_link_libraries(hera_mpi ${MPI_LIBRARIES}) |