Difference between revisions of "OpenMP in Small Bites/Overview"

From HPC Wiki
OpenMP in Small Bites/Overview
Jump to navigation Jump to search
(Created page with "{{Infobox OpenMP in Small Bites}}")
 
Line 1: Line 1:
 +
[[Category:Tutorials]]
 +
 +
__TOC__
 +
 
{{Infobox OpenMP in Small Bites}}
 
{{Infobox OpenMP in Small Bites}}
 +
 +
 +
=== Video === <!--T:5-->
 +
 +
<youtube width="600" height="400" right>IfD9IPixgpo</youtube>
 +
 +
 +
=== Quiz === <!--T:5--> 
 +
 +
 +
{{hidden begin
 +
|title = Out of which three components the OpenMP interface consists?
 +
}}
 +
<quiz display=simple>
 +
{
 +
|type="()"}
 +
+ Click and submit to see the answer
 +
|| compiler directives, runtime routines, environment variables
 +
</quiz>
 +
{{hidden end}}
 +
 +
{{hidden begin
 +
|title = What is one of the key concepts of the OpenMP execution model?
 +
}}
 +
<quiz display=simple>
 +
{
 +
|type="()"}
 +
+ Click and submit to see the answer
 +
|| Fork-Join: An OpenMP program starts with just one worker thread (<code>master</code>). The <code>worker</code> threads are spawned in the parallel region and form a <code>team</code> of threads together with the <code>master</code>. They all join at the end of a parallel region.
 +
</quiz>
 +
{{hidden end}}
 +
 +
{{hidden begin
 +
|title = How can you control the number of threads?
 +
}}
 +
<quiz display=simple>
 +
{
 +
|type="()"}
 +
+ Click and submit to see the answer
 +
|| a. Set environment variable OMP_NUM_THREADS.
 +
b. Use num_threads clause on a parallel construct.
 +
</quiz>
 +
{{hidden end}}

Revision as of 16:49, 30 October 2020



HPC.NRW
HPC.NRW
Other HPC Courses
1. Gprof Tutorial
2. Introduction to Linux in HPC
OpenMP in Small Bites
1. Overview
2. Worksharing
3. Data Scoping
4. Non-Uniform Memory Access







Video


Quiz

Out of which three components the OpenMP interface consists?

Click and submit to see the answer

What is one of the key concepts of the OpenMP execution model?

Click and submit to see the answer

How can you control the number of threads?

Click and submit to see the answer