Basics of MPI Programming

2. MPI Programs

This section will provide an introduction to a simple MPI program, the venerable Hello, world program. It will provide a visual image to relate to and refer back to if you have questions concerning things like

  • what order should these calls be made in?
  • what did that parameter list look like?

The program itself is nothing more than the venerable Hello, world program, so we don't have to be concerned about understanding the purpose or the algorithm -- rather, we can focus completely on the mechanics of accomplishing an extremely easy task in parallel.