Link to this document's Jupyter Notebook

The due date for this homework is April 19 one minute to midgnight.

Homework 3: Bandwidth and Latency

In this homework you will solve excersise 4.1 in TheArtOfHPC_vol2

Start by reading about ping-pong here.

Implement the ping-pong program discussed above.

  1. Add a timer using MPI_Wtime.
  2. For the status argument of the receive call, use MPI_STATUS_IGNORE.
  3. Run multiple ping-pongs (say a thousand) and put the timer around the loop. The first run may take longer; try to discard it.
  4. Run your code with the two communicating processes first on the same node, then on different nodes. Do you see a difference?
  5. Then modify the program to use longer messages. How does the timing increase with message size?
  6. Do a regression to determine α,β

There is a template program available.

ADD report text and figures here.


Congratulations, you are done!

Submit your tgz file to the course Desire2Learn page in the HW1 assignment.

Written by Daniel Appelo, Michigan State University Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.