diff --git a/idg-bin/examples/cxx/CMakeLists.txt b/idg-bin/examples/cxx/CMakeLists.txt index a16fec19f1cc8839207d4aaedb2de086017a89f3..77b07f54f98284bbf60ede66e453a2100ae38fcb 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 5b740b948ac810cadf5f4c75dafd41261de39868..e78ba7800a0f5bdecfa7a9f6d6ec615d41ebb878 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