HTML version of Scripted Foils prepared 11 November 1996

Foil 10 The Six Fundamental MPI routines

From CPS615-Initial Lecture on MPI ending with discussion of basic MPI_SEND Delivered Lectures of CPS615 Basic Simulation Track for Computational Science -- 31 October 96. by Geoffrey C. Fox *
Secs 243.3
1 call MPI_INIT(mpierr) -- initialize
2 call MPI_COMM_RANK (comm,rank,mpierr) -- find processor label (rank) in group
3 call MPI_COMM_SIZE(comm,size,mpierr) -- find total number of processors
4 call MPI_SEND (sndbuf,count,datatype,dest,tag,comm,mpierr) -- send a message
5 call MPI_RECV (recvbuf,count,datatype,source,tag,comm,status,mpierr) -- receive a message
6 call MPI_FINALIZE(mpierr) -- End Up

Table Font Size


© 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 Fri Aug 15 1997