Lecture 8
Learning objectives
After this class, you should be able to:
- Explain the concept of a communicator in MPI.
- Explain how MPI matches messages.
- Explain the semantics of
MPI_SendandMPI_Recv.- Compile and run MPI programs.
- Write simple MPI prorgams using
MPI_Init,MPI_Comm_rank,MPI_Comm_size,MPI_Send,MPI_Recv, andMPI_Finalize.
Reading assignment
- Lecture 8 slides.
- Lecture 8 example codes.
- Section 3.1.
Exercises and review questions
- Questions on current lecture's material
- Modify the
hello_worldcode so that only every even numbered process prints an output.- Modify the
SRcode so that process 0 sends data to all other processes.- Questions on next lecture's material
- None.