Question: Sum = 4 ? ? ( - 1 ) i 2 i + 1 write a serial program in C to calculate sum of given
Sum
write a serial program in to calculate sum of given expression using point to point communication
:PM
In this assignment, you will write both serial and parallel programs to calculate the Sum using the following formula:
Sum
You will write a serial C program SumSerial.c to calculate the sum Sum and validate the correctness of your serial implementation. You will modify the serial program into two parallel programs, namely SumMPIvc and SumMPIvc In SumMPIvc utilize only MPI pointtopoint communication functions MPISend and MPI ecv for message passing. In SumMPIc implement your parallel solution using collective communication functions. Compile and execute these programs on magnolia HPC cluster to obtain the results. The user can specify when executing your programs.
Present your results in the following two tables. Table should include a comparison of the Sum results obtained by three programs with respect to different numbers. For the two parallel programs, you can set and where is the number of processes. Ensure that the Sum results exhibit six digits to the right of the decimal point.
Table : Comparison of Sum results with respect to different and values.
tableSumSumSerial.cSum MPI vcSum MPI vc
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
