From 7b962e0672acb9d3aef309f779afc598dc29f2c6 Mon Sep 17 00:00:00 2001 From: Bram Veenboer Date: Tue, 5 Jan 2021 17:06:37 +0100 Subject: [PATCH] First steps towards MPI example --- idg-bin/examples/cxx/CMakeLists.txt | 1 + idg-lib/CMakeLists.txt | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/idg-bin/examples/cxx/CMakeLists.txt b/idg-bin/examples/cxx/CMakeLists.txt index a16fec19..77b07f54 100644 --- a/idg-bin/examples/cxx/CMakeLists.txt +++ b/idg-bin/examples/cxx/CMakeLists.txt @@ -22,3 +22,4 @@ if (BUILD_LIB_OPENCL) add_subdirectory(OpenCL) endif () add_subdirectory(plan) +add_subdirectory(distributed) \ No newline at end of file diff --git a/idg-lib/CMakeLists.txt b/idg-lib/CMakeLists.txt index 5b740b94..e78ba780 100644 --- a/idg-lib/CMakeLists.txt +++ b/idg-lib/CMakeLists.txt @@ -19,7 +19,8 @@ option (BUILD_LIB_CPU "Build CPU libraries" ON) option (BUILD_LIB_CUDA "Build CUDA libraries" OFF) #option (BUILD_LIB_OPENCL "Build OpenCL libraries" OFF) option (BUILD_WITH_MKL "Build with MKL (if available)" OFF) -option (BUILD_WITH_POWERSENSOR " Build with PowerSensor" OFF) +option (BUILD_WITH_POWERSENSOR "Build with PowerSensor" OFF) +option (BUILD_WITH_MPI "Build with MPI" OFF) option (PERFORMANCE_REPORT "Report performance metrics" OFF) option (COMPILE_VERBOSE "Report compiler flags used during runtime compilation" OFF) option (STRICT_WARNINGS "Turn compiliation warnings into errors" ON) @@ -124,6 +125,11 @@ if (BUILD_LIB_CUDA) find_package(CUDA QUIET) endif() +# MPI +if (BUILD_WITH_MPI) +find_package(MPI QUIET) +endif() + include_directories (${CMAKE_CURRENT_BINARY_DIR}/src) # add main include folder -- GitLab