OpenMP Data Scope Attributes

This exercise is to help you learn and use the OpenMP data scope attributes introduced in the lecture. Please take the existing code jacobi.f and insert the following OpenMP data scope attributes into this FORTRAN code:

shared
private
lastprivate
reduction
schedule (static, dynamic, guided)

In addition, please use different schedule options (static, dynamic or guided) in the code and compare the performance of different schedulings. You may do this by setting the environment parameter:

setenv OMP_SCHEDULE dynamic