Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this assignment, you will write both serial and parallel programs to calculate the Sum using the following formula: Sum = 4 i = 0
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 point
topoint communication functions MPISend and MPI Recvfor 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 n 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.
In Table analyze and compare the performance of two parallel implementations in terms of
parallel runtime speedup and efficiency with respect to different number of processes.
Table : Comparison of the parallel performance of the two parallel implementations
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started