DIY  3.0
data-parallel out-of-core C++ library
 All Classes Namespaces Functions Typedefs Groups Pages
mpi.hpp
1 #ifndef DIY_MPI_HPP
2 #define DIY_MPI_HPP
3 
4 #include <mpi.h>
5 
6 #include "mpi/constants.hpp"
7 #include "mpi/datatypes.hpp"
8 #include "mpi/optional.hpp"
9 #include "mpi/status.hpp"
10 #include "mpi/request.hpp"
11 #include "mpi/point-to-point.hpp"
12 #include "mpi/communicator.hpp"
13 #include "mpi/collectives.hpp"
14 #include "mpi/io.hpp"
15 
16 namespace diy
17 {
18 namespace mpi
19 {
20 
23 {
24  environment() { int argc = 0; char** argv; MPI_Init(&argc, &argv); }
25  environment(int argc, char* argv[]) { MPI_Init(&argc, &argv); }
26  ~environment() { MPI_Finalize(); }
27 };
28 
29 }
30 }
31 
32 #endif
Definition: mpi.hpp:22