Skip to content
README.md 415 B
Newer Older
## Parallel region and data sharing ##

Take a look at the exercise skeleton in [variables.c](variables.c) (or
[variables.F90](variables.F90) for Fortran). Add an OpenMP parallel
region aroung 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.