Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 443 Bytes

File metadata and controls

10 lines (7 loc) · 443 Bytes

Data sharing and parallel regions

Explore data sharing between OpenMP threads.

Starting from the skeleton code (variables.cpp or variables.F90), add an OpenMP parallel region around the block where the variables Var1 and Var2 are printed and manipulated.

What results do you get when you define the variables as shared, private or firstprivate? Explain why do you get different results.