hello_mpi, a C++ code which prints out "Hello, World!", while invoking the MPI parallel programming system.
If you're just trying to learn MPI, or learning how to use MPI on a different computer system, or in batch mode, it's helpful if you start with a very simple program with a tiny amount of output that should print immediately if things are working well.
MPI no longer supports the special C++ MPI bindings, so the examples given here have reverted to using the C MPI bindings.
The information on this web page is distributed under the MIT license.
hello_mpi is available in a C version and a C++ version and a Fortran90 version and a Python version.
hello, a C++ code which prints out "Hello, world!".
hello_openmp, a C++ code which prints out "Hello, world!" using the OpenMP parallel programming environment.
mpi_test, a C++ code which uses the message passing interface (MPI) for parallel computations in a distributed memory environment.