This section discusses six basic MPI routines. Both the C and Fortran
interfaces are used in the examples. The main difference between the
two interfaces is the way return codes are delivered to the caller. In
C, the return codes are passed back as the result of the function. In
Fortran, the return code is passed back through the last argument to the
subroutine (ierr).
There are many good introductions to MPI for those who want information beyond what is given in this brief tutorial. Gropp, Lusk, and Skjellum have written Using MPI: Portable Parallel Programming with the Message Passing Interface. Foster devotes a chapter to MPI in his book, Designing and Building Parallel Programs; this resource is also available online at http://www.mcs.anl.gov/dbpp. The MPI homepage, http://www.mcs.anl.gov/mpi, contains useful introductory material as well as many reference documents on MPI.
Go to the first, previous, next, last section, table of contents.