September 2018
Intermediate to advanced
606 pages
14h 32m
English
In this recipe, we set out to find the MPI implementation: library, header files, compiler wrappers, and launcher. To do so, we will leverage the FindMPI.cmake standard CMake module:
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)project(recipe-06 LANGUAGES CXX)set(CMAKE_CXX_STANDARD 11)set(CMAKE_CXX_EXTENSIONS OFF)set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(MPI REQUIRED)
add_executable(hello-mpi hello-mpi.cpp)target_link_libraries(hello-mpi PUBLIC ...
Read now
Unlock full access