"No MPI process should contain the full wave at any moment."

"No MPI process should contain the full wave at any moment."

by Charley Xu -
Number of replies: 1

Hello,

My plan for assignment 9 is to use different MPI processes is to parallelize the following for loop:


each process will compute a partial sum of T and V by dividing the workload over the rows of rho and rho_prev, and pass the results

to a final process that adds those partial sums up.

Does this violate the requirement that : "No MPI process should contain the full wave at any moment."





In reply to Charley Xu

Re: "No MPI process should contain the full wave at any moment."

by Ramses van Zon -
Yes, it would, as in thar scheme the whole wave is contained in every process. In MPI you cannot just parallize a part of the code, all the code is parallel all the time. You need to consider that all processes are running from the start, that is why you can't have all the data duplicated in every process; it would not fit in memory.