boost-mpi

C++ library for parallel computing with MPI message passing

brewmacoslinux
Try with needOr install directly
Source

About

C++ library for C++/MPI interoperability

Examples

compile C++ program using boost MPI library$ mpic++ -I$(brew --prefix boost-mpi)/include -L$(brew --prefix boost-mpi)/lib -lboost_mpi -lboost_system myprogram.cpp -o myprogram
run MPI program across multiple processor cores$ mpirun -np 4 ./myprogram
check boost MPI installation path and version$ brew info boost-mpi && pkg-config --modversion boost-mpi
link boost MPI library in CMake project$ find_package(Boost REQUIRED COMPONENTS mpi) and target_link_libraries(mytarget Boost::mpi)
verify MPI compiler wrapper is working$ mpic++ --version && mpirun --version