High Performance Computing 1
MPI Messages
•            
•
•
•
•
•
•
•
• send/recv need rank of sender, receiver, a message tag (0-32767), and communicator
int MPI_Send(void* message, int count, MPI_Datatype datatype, int dest,
int tag, MPI_Comm comm)
int MPI_Recv(void* message, int count, MPI_Datatype datatype, int source,
int tag, MPI_Comm comm, MPI_Status* status)
there exists a predefined constant  MPI_ANY_SOURCE
ditto MPI_ANY_TAG
status returns information on the data received (e.g. sender if MPI_ANY_SOURCE used)
•