Difference between revisions of "OpenMP in Small Bites/Tasking and Synchronization"
OpenMP in Small Bites/Tasking and Synchronization
Jump to navigation
Jump to search
m (Add video link) |
m (Remove linebreak) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:Tutorials]]<nowiki /> | + | [[Category:Tutorials|Task Synchronization (OpenMP)]]<nowiki /> |
+ | {{DISPLAYTITLE:Task Synchronization (OpenMP)}}<nowiki /> | ||
{{Syllabus OpenMP in Small Bites}}<nowiki /> | {{Syllabus OpenMP in Small Bites}}<nowiki /> | ||
__TOC__ | __TOC__ | ||
+ | |||
+ | This video discusses different synchonrization mechanisms for OpenMP Tasking. | ||
== Video == | == Video == | ||
− | <youtube width="600" height=" | + | <youtube width="600" height="340" right>xOpMkfT2jys</youtube> |
+ | |||
+ | ([[Media:hpc.nrw_07_Introduction-TaskingAndSynchronization.pdf | Slides as pdf]]) | ||
== Quiz == | == Quiz == | ||
+ | |||
+ | {{hidden begin | ||
+ | |title = 1. What happens to tasks at a <code>barrier</code> construct? | ||
+ | }} | ||
+ | <quiz display=simple> | ||
+ | { | ||
+ | |type="()"} | ||
+ | - All existing tasks are guaranteed to be completed at barrier exit. | ||
+ | || Wrong. | ||
+ | + All tasks of the current thread team are guaranteed to be completed at barrier exit. | ||
+ | || Correct. | ||
+ | - Only the direct child tasks tasks are guaranteed to be completed at barrier exit. | ||
+ | || Wrong. | ||
+ | </quiz> | ||
+ | {{hidden end}} | ||
+ | |||
+ | {{hidden begin | ||
+ | |title = 2. Which tasks are synchronized with by a <code>taskwait</code> construct? | ||
+ | }} | ||
+ | <quiz display=simple> | ||
+ | { | ||
+ | |type="()"} | ||
+ | - All tasks of the same thread team. | ||
+ | || Wrong. | ||
+ | - All desendant tasks. | ||
+ | || Wrong. | ||
+ | + The direct child tasks. | ||
+ | || Correct. | ||
+ | </quiz> | ||
+ | {{hidden end}} |
Latest revision as of 16:41, 4 December 2020
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
Quiz
1. What happens to tasks at a
barrier
construct?
2. Which tasks are synchronized with by a
taskwait
construct?