Work in progress, for now basic examples of using the Message Passing Interface API for distributed programming. Examles are given for C, Fortran (2008).
HelloWorld
: most basic MPI program to show initialization, rank, size, and finalization.MatrixReduce
: computing a sum of matrices in each process using MPI_Reduce.MpiIO
: some examples of using MPI-IO.MpiSharedMem
: illustration of MPI shared memory programming.mpi.pptx
: a very basic and gentle introduction to MPI from a C programmer's perspective.MultiApp
: illustrations of how to use MPI communication between applications.OverlappingComputationCommunication
: illustration of overlapping a computation and a communcation using non-blocking communication.Pi
: sample of a hybrid MPI/OpenMP code, illustrating use of re-entrantrand_r
function.Ring
: a few examples of point-to-point communication for "halo exchange".ScatterGather
: simple illustration of using the scatter/gather subroutines of MPI.SimplePi
: the implementation to compute pi using quadrature mentioned in thempi.pptx
slides.SparseSends
: how to receive messages from a small number of a-priory unknown processes.Communicators
: sample code relating to communicators and groups.