Task Synchronization (OpenMP)

From HPC Wiki
OpenMP in Small Bites/Tasking and Synchronization
Jump to navigation Jump to search

Tutorial
Title: OpenMP in Small Bites
Provider: HPC.NRW

Contact: tutorials@hpc.nrw
Type: Multi-part video
Topic Area: Programming Paradigms
License: CC-BY-SA
Syllabus

1. Overview
2. Worksharing
3. Data Scoping
4. False Sharing
5. Tasking
6. Tasking and Data Scoping
7. Tasking and Synchronization
8. Loops and Tasks
9. Tasking Example: Sudoku Solver
10. Task Scheduling
11. Non-Uniform Memory Access

This video discusses different synchonrization mechanisms for OpenMP Tasking.

Video

( Slides as pdf)

Quiz

1. What happens to tasks at a barrier construct?

All existing tasks are guaranteed to be completed at barrier exit.
All tasks of the current thread team are guaranteed to be completed at barrier exit.
Only the direct child tasks tasks are guaranteed to be completed at barrier exit.

2. Which tasks are synchronized with by a taskwait construct?

All tasks of the same thread team.
All desendant tasks.
The direct child tasks.