2.C Worksharing Directives
Story so far:
- Replicated execution in parallel region
- Programmer distributes work based on thread ids
OpenMP provides an alternative: Work-sharing directives
Automatically distributes work among threads for the most common work in programs
- iterative worksharing directive for loops
- non-iterativeworksharing for sections