fox.c
program with
1 and with 4 processors.
It can be found on porsche in ~saunders/ppmpi/chap07/fox.c
.
Fox.c
reads in two matrices A and B and computes their product C = A*B.
We will modify fox.c
to obtain an efficient program that computes
the square of the Hilbert matrix, C = H*H. For any given order n,
The n by n Hilbert matrix has 1/(i+j+1) in it's i,j position for
i in [0..n) and j in [0..n).
fox.c
so that
main()
have process zero time the call to function fox()
using MPI_WTime()
.
The main purpose of this lab is to determine how parallel efficiency
is affected when 4 processors are used but various sizes of matrices are multiplied.
temp_mat
.
Also be sure no process has more than 4 matrix blocks allocated at any one time.
fox.c
is not well commented. Each
function should have a comment saying what it does. It is not even stated
whether the inputs local_A
and local_B
to function fox()
can be the same
or not. May they be the same (in the version you end up with)?
Please staple all parts of your lab together, and label each piece. Be prepared to discuss your results on the day that the assignment is due.