OpenMP in Small Bites/Scoping

From HPC Wiki
OpenMP in Small Bites/Scoping /
Jump to navigation Jump to search



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

1. What is the default data scoping of variable in a parallel region when this variable is declared before a parallel region?

Click and submit to see the answer

2. What is the data scoping of the variables a, b, c and d in the following code snippet in the parallel region? What is printed when executing the code?

Click and submit to see the answer

3. The following code snippet is wrong due to a missing data sharing attribute. How can you fix it?

Click and submit to see the answer