Basic HTML version of Foils prepared 2 October 1995

Foil 23 Implementation of SHIFT in MPI

From New CPS615 Foils-- D 23 September 95 CPS615 Basic Simulation Track for Computational Science -- Fall Semester 95. by Geoffrey C. Fox


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

in Table To:


© on Tue Oct 7 1997