Norm Matloff's MPI Web Page
Professor Norm Matloff
Dept. of Computer Science
University of California at Davis
Davis, CA 95616
(Please mail any questions to Norm
Matloff.)
MPI is a message-passing library, callable from C or C++ on any
TCP/IP network. (Some versions also work on other platforms, e.g.
SMPs.) There are several implementations available, some free and others
commercial. One of the most popular free implementations is MPICH.
General information on MPI:
- MPI home page.
Among other things, you will find links to some MPI tutorials,
sample programs and books.
- The text by Pacheco. You can
read an earlier and much shorter
version online.
- Man pages
for the MPI routines.
-
Prof. Matloff's MPI tutorial.
- The MPI
Forum has brief descriptions and examples of the MPI routines.
- MPI example programs:
- Norm
Matloff's introductory MPI program. Again, remember that
the applicability of MPI is much more general than this; this
document is included here just as an introduction to the
available library calls in MPI.
- Even if you do not have Pacheco's book, you may find his sample
programs to be very useful For instance, if you need to see an
example of the usage of a certain MPI function, simply do a grep on
the Pacheco sample programs to find one. I've copied one of his
programs, trap.c, here for your
convenience if you want another quick example to test your MPI
build. It has no command-line arguments, and can be run with
any number of nodes which divides 1024.
- Various examples in the MPI
Forum page are labeled as "Examples using..." in the table of
contents.
Material on MPICH/MPICH2 implementations of MPI:
Matloff on the LAM implementations of MPI: