Question: Given a sequential Laplace Red / Black Solver code, you need to do the following: 1 - Write a parallel code using OpenMP for the

Given a sequential Laplace Red/Black Solver code, you need to do the following:
1- Write a parallel code using OpenMP for the (laplace_solver_par) function only.
2-Specify the data environment of the used variables explicitly (shared, private, reduction, etc.).
3- Use different loop scheduling policies (static, dynamic) with three chunk sizes (1,2,4).
4- Use four different numbers of threads (1,2,3,4.
5- Try different OpenMP clauses to check their impact on performance.
6- Use omp_get_wtime() in the main function to measure the total elapsed time of the
(laplace_solver_par) function to compare it with the total elapsed time of the (laplace_solver_seq)
function.
7- Use any required loop optimizations if possible to improve performance and explain it in your report.
8- Write a report as a.pdf file that includes the following:
a- Your final parallel code
b- A table that consists of all the experiments and their timing measurements.
c- An explanation about your final parallel code and why it is better than the other versions.
d- A final table that compares the sequential code with your final/best parallel code that includes
execution time, speedup, and efficiency.
 Given a sequential Laplace Red/Black Solver code, you need to do

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!