Question: Hey please help with this problem in C++ And please give out the output Thanks. MPI Lab2 Using MPI_Comm Rank, MPI Comm_size, MPI_Send, MPI_Recv, MPI

Hey please help with this problem in C++
And please give out the output
Thanks.  Hey please help with this problem in C++ And please give
out the output Thanks. MPI Lab2 Using MPI_Comm Rank, MPI Comm_size, MPI_Send,
MPI_Recv, MPI Beast and MPI Reduce 1. Task I: serial program to

MPI Lab2 Using MPI_Comm Rank, MPI Comm_size, MPI_Send, MPI_Recv, MPI Beast and MPI Reduce 1. Task I: serial program to find partial sums Write a serial c++ program, SerialPartialSum.cpp to print out the partial sum of 100 numbers at a time and also the total sum for 1000 integers 1, 2, 3... 1000. Compile and run your program 10 times and find the average time for the job. This is the serial time, t, for the calculation of the Speedup Factor. 2. Task II: find partial sums, MPI program (1) Write an MPI program named PartialSum.cpp in which each process will compute and print out a partial sum of N=100 numbers of a total of NT-1000 numbers. In your program, define 10 processes; then process 0 will print out the partial sum of 1+2+ +100 (that is,), process 1 will print out the partial sum of 101+102+...+200(that is, ), , process 9 will print out the partial sum of 100 i 101 901+902+ + 1000(that is, ). (Note: In this program, you can declare a constant NT-1000 or use pre-processing statement #define NT 1000) -901 (2) Compile and run your program with 10 cores. Run the code 10 times and find the average time for the job. (3) Revise your run script file and your program to apply for 20 nodes, and then run your program again and again, time your program for 10 repetitions and compare it to the time for 10 cores

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!