Parallel region

  • A parallel region is a block of code that is executed by a team of threads
  • The following compiler directive creates a parallel region
#pragma omp parallel { ... }
  • Clauses can be added at the end of the directive
  • Most often used clauses:
    • default(shared) or default(none)
    • public(list of variables)
    • private(list of variables)