HTML version of Scripted Foils prepared 11 November 1996

Foil 26 Implementation of SHIFT in MPI

From CPS615-Completion of MPI foilset and Application to Jacobi Iteration in 2D Delivered Lectures of CPS615 Basic Simulation Track for Computational Science -- 7 November 96. by Geoffrey C. Fox *
Secs 144
1 We can implement MPSHIFT directly in MPI as CALL MPI_SENDRECV(SOURCE,1,MPI_REAL, PROCNUM+1, sendtag, DEST,1,MPI_REAL, PROCNUM-1, recvtag,comm,status)
2 Notes:
3 MPI_REAL denotes that variable is real
4 "sendtag/recvtag" are for this purpose, a largely irrelevant additional message tag
5 "comm" is extra system message tag defining "scope" -- i.e. the set of processors involved -- here it is all of them
6 "status" tells you about received data. You needn't look at it if you trust your code and hardware

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