Christopher Cameron, Peter Vaillancourt, CAC Staff (original)
Cornell Center for Advanced Computing

Revisions: 5/2022, 3/2019, 6/2017, 2/2001 (original)

This topic provides an introduction to MPI using a simple program. As you work on your own MPI programs, refer back to this material if you have questions concerning things like:

  • In what order should MPI functions be called?
  • What are the parameters, how are they ordered, and what do they mean?

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.

Objectives

After you complete this topic, you should be able to:

  • Describe the basic outline of an MPI program
  • List six basic MPI routines
  • Distinguish between C and Fortran MPI type signatures.
Prerequisites
 
©  |   Cornell University    |   Center for Advanced Computing    |   Copyright Statement    |   Inclusivity Statement