Avoiding Buffering Costs
Copies are not needed if
- Send does not return until the data is delivered,
or
- The data is not touched after the send
MPI provides modes to arrange this
- Synchronous: Do not return until recv is posted
- Ready: Matching recv is posted before send
- Buffered: If you really want buffering