Question: i need to parallize the code below using c + + language , following these requirements : Given a sequential Laplace Red / Black Solver
i need to parallize the code below using c language following these requirements :
Given a sequential Laplace RedBlack Solver code, you need to do the following:
Write a parallel code using OpenMP for the laplacesolverpar function only.
Specify the data environment of the used variables explicitly shared private, reduction, etc.
Use different loop scheduling policies static dynamic with three chunk sizes
Use four different numbers of threads
Try different OpenMP clauses to check their impact on performance.
Use ompgetwtime in the main function to measure the total elapsed time of the
laplacesolverpar function to compare it with the total elapsed time of the laplacesolverseq
function.
Use any required loop optimizations if possible to improve performance and explain it in your report.
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
