Basic HTML version of Foils prepared 19 September 98

Foil 45 Examples of Collective Communication/Computation

From MPI Message Passing Interface Computational Science for Simulations -- Fall Semester 1998. by Geoffrey C. Fox, Nancy McCracken


1 Four Processors where each has a send buffer of size 2
  • 0 1 2 3 Processors
  • (2,4) (5,7) (0,3) (6,2) Initial Send Buffers
  • MPI_BCAST with root=2
  • (0,3) (0,3) (0,3) (0,3) Resultant Buffers
  • MPI_REDUCE with action MPI_MIN and root=0
  • (0,2) (_,_) (_,_) (_,_) Resultant Buffers
  • MPI_ALLREDUCE with action MPI_MIN and root=0
  • (0,2) (0,2) (0,2) (0,2) Resultant Buffers
  • MPI_REDUCE with action MPI_SUM and root=1
  • (_,_) (13,16) (_,_) (_,_) Resultant Buffers

in Table To:


© 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