Question: Numerical Integration : Master-Worker A master-worker system enables dynamic scheduling of applications. The idea is that one of the MPI processes (usually rank 0) will

Numerical Integration : Master-Worker A master-worker system enables dynamic scheduling of applications. The idea is that one of the MPI processes (usually rank 0) will be responsible for giving work to the other MPI processes and collect results. Usually the master process starts by sending one chunk of work to all the workers and when one of the worker provides the result of that chunk of work, the master process will send a new chunk of work to the worker that just completed the work.

The workers will wait for a chunk of work to perform, perform that chunk of work, and return the result to the master node. Pay attention that the master node needs to notify the worker nodes when there is no more work to perform so the workers can quit gracefully. Question: Adapt the numerical integration to make it schedule the calculation using a master-worker system. Question: Run and time that program on mamba using 1, 2, 4, 8, 16, 32 cores. And plot speedup charts. Use the queue dynamic.sh and plot dynamic.sh scripts to do so.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!