Answered step by step
Verified Expert Solution
Link Copied!

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 =4i=0n(-1)i2i+1
You will write a serial C program (Sum_Serial.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 Sum_MPI_v1.c and Sum_MPI_v2.c. In Sum_MPI_v1.c, utilize only MPI point-
to-point communication functions (MPI_Send and MPI_- Recv)?-for message passing. In
Sum_MPI_2.c, 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 n when executing your programs.
Present your results in the following two tables. Table 1 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 p=1 and p=8 where p is the number of processes. Ensure that the Sum
results exhibit six digits to the right of the decimal point.
Table 1: Comparison of Sum results with respect to different n and p values.
In Table 2, analyze and compare the performance of two parallel implementations in terms of
parallel runtime T, speedup S and efficiency E with respect to different number of processes.
Table 2: Comparison of the parallel performance of the two parallel implementations
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago