Exercise - PI


Up: Sending and Receiving messages Next: Exercise - Ring Previous: C example (cont.)

Objective: Experiment with send/receive

Run either program for PI. Write new versions that replace the calls to MPI_Bcast and MPI_Reduce with MPI_Send and MPI_Recv.

127 The MPI broadcast and reduce operations use at most send and receive operations on each process where p is the size of MPI_COMM_WORLD. How many operations do your versions use?



Up: Sending and Receiving messages Next: Exercise - Ring Previous: C example (cont.)