International HPC Summer School 2016
Parallel programming: classic track (MPI & OpenMP) 4
David Henty, PRACE, XSEDE, RIKEN, Compute Canada
June 2016
Slide contents
Threads
Introduction to OpenMP
Work sharing directives
Parallel do loops
Parallel do/for loops (cont)
Parallel do/for loops (cont)
Restrictions in C/C++
Parallel do/for loops (cont)
Parallel do/for loops (cont)
Parallel for loops (example)
Parallel DO/FOR directive
Clauses
SCHEDULE clause
STATIC schedule
STATIC schedule
DYNAMIC schedule
GUIDED schedule
DYNAMIC and GUIDED schedules
AUTO schedule
Choosing a schedule
RUNTIME schedule
Nested loops
SINGLE directive
SINGLE directive (cont)
SINGLE directive (cont)
SINGLE directive (cont)
MASTER directive
MASTER directive (cont)
Parallel sections
Parallel sections (cont)
Parallel sections (cont)
Parallel sections (cont)
Parallel sections (cont)
Parallel section (cont)
Workshare directive
Workshare directive (cont.)
Workshare directive (cont.)
Workshare directive (cont.)
Exercise