Lecture 22
Learning objectives
After this class, you should be able to:
- Choose placement of OpenMP directive to reduce fork-join overhead.
- Use the
schedule
clause to balance the load during work-sharing offor
loops.
Reading assignment
- Section 5.6 - 5.7.
- Lecture 22 slides.
- Lecture 22 example code.
Exercises and review questions
- Questions on current lecture's material
- Compare the performance of the two example
odd-even
transposition sort codes. What is the reason for any difference in performance?- Change the schedule in the
sin_sum
code and identify a good schedule.- Questions on next lecture's material
- None.