Basic HTML version of Foils prepared August 29 98

Foil 43 Jacobi Iteration: MPI Program Design

From Designing and Building Parallel Programs 3: MPI Message Passing System DoD Modernization Tutorial -- 1995-1998. by Ian Foster, Gina Goff, Ehtesham Hayder, Chuck Koelbel


Mapping: Cartesian grid directly supported by MPI virtual topologies
  • The system is helping you with the mapping!
For generality, write as the 2-D version
  • Create a 1?P (or P?1) grid for 1-D version
  • MPI_PROC_NULL avoids special-case coding
Adjust array bounds, iterate over local array
  • For convenience, include shadow region to hold communicated values (not iterated over)



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Apr 11 1999