The Power Method using MPI on a simulated ring

Now you are going to solve the same problem again, but using the full power of the interconnecting network available on modern parallel computers (so you can forget about the ring architecture from now on).
 

Make a copy of your program from the first exercise, and solve the problem using a suitable collective communication routine (some type of broadcast routine; there is one that is perfect for the job).

Fortran or C is OK.


Back