CS 590A - Programming Assignment 4

This assignment makes use of the files contained in this zip file. This assignment is due Tuesday, April 6.

In this assignment you will fix one of the MPI examples from the textbook. The program sketched in Figure 7.8 on pages 224-226 is supposed to demonstrate how one might use non-blocking sends and receives to overlap communication with computation. Unfortunately, the program does not do the non-blocking communication calls correctly. Fix this.

In the zip file is a copy of the program 2D-SOR-MPI-non-blocking.c. I have fleshed out the code from Figure 7.8 to the point where it is basically runable, but it mishandles the non-blocking communication. Notice that lines 256 - 266 contain code that will "animate" the running of the program for certain parameters. Compile and run the program and use the output in the four console windows to help you figure out what is wrong. Then fix it.

Turn in a zip file containing your repaired version of 2D-SOR-MPI-non-blocking.c along with the supporting MPI dll's.

This assignment is due Tuesday, April 6.


Return to the main homework page.
Return to the CS 590A home page.


compliments and criticisms