Fortran M and MPI Example Programs Library
This page is part of the archetypes work from Compositional Systems research group. Here are a series of Fortran M and MPI example programs of increasing complexity, analogous to our Maisie examples. Also, Argonne has some cool MPI tutorials and Ian Foster's helpful book Designing and Building Parallel Programs.
Fortran M example programs
The following are a series of Fortran M example programs of increasing complexity:
send_and_receive.FM - sender process sends token to receiver process.
ring_of_two_1.FM - two processes send token back and forth.
ring_of_two_2.FM - two processes send token back and forth, with delays.
ring_of_N.FM - token sent clockwise around ring of N processes.
two_way_ring.FM - tokens sent clockwise and anticlockwise around ring.
MPI example programs
The following are a series of MPI example programs of increasing complexity:
mpi1.c - sender process sends token to receiver process.
mpi2.c - two processes send token back and forth.
mpi3.c - two processes send token back and forth, with delays.
mpi4.c - token sent clockwise around ring of N processes.
mpi5.c - tokens sent clockwise and anticlockwise around ring.
In addition, we provide
Makefile
message.h - #defines for a nicer message-passing syntax.
From the Compositional Systems Research page of the Caltech CS Dept,
Maintained by Adam Rifkin, adam@cs.caltech.edu (last modified June 19, 1996)
This work is supported in part by DARPA grant N00014-91-J-4014 and CRPC grant CCR-9120008.