Data scope

  • OpenMP data scope attribute clauses:
    • shared
    • private
    • firstprivate
    • lastprivate
    • reduction

What are the purposes of these attributes

  • define how and which variables are transferred to a parallel region (and back)
  • define which variables are visible to all threads in a parallel region, and which variables are privately allocated to each thread