Lecture 9
Learning objectives
After this class, you should be able to:
- Given a simple problem, develop a parallel algorithm for it and implement parallel MPI code.
- Explain how MPI processes typically perform I/O.
Reading assignment
- Lecture 9 slides.
- Lecture 9 example code.
- Section 3.2-3.3.
- Page 103.
Exercises and review questions
- Questions on current lecture's material
- (Post on the discussion board) Run the the lecture 9 parallel pi example. Give the number of intervals, the number of processes used, and the estimate of pi output.
- Write parallel MPI code for estimating pi using the trapezoidal method. The number of intervals should be a command line argument. Use a block decomposition, as used in the book.
- Questions on next lecture's material
- Which MPI call can we use to replace the sequential addition of the sums received from each process by process 0 in the MPI code for calculating pi?