Tutorials
MPI
POSIX
Home
/ OpenMP
OpenMP
Author: Blaise Barney, Lawrence Livermore National Laboratory, UCRL-MI-133316
Table of Contents
Abstract
Introduction
OpenMP Programming Model
OpenMP API Overview
Compiling OpenMP Programs
OpenMP Directives
Fortran Directive Format
C/C++ Directive Format
Directive Scoping
PARALLEL Construct
Exercise 1
Work-Sharing Constructs
DO / for Directive
SECTIONS Directive
WORKSHARE Directive
SINGLE Directive
Combined Parallel Work-Sharing Constructs
TASK Construct
Exercise 2
Synchronization Constructs
MASTER Directive
CRITICAL Directive
BARRIER Directive
TASKWAIT Directive
ATOMIC Directive
FLUSH Directive
ORDERED Directive
THREADPRIVATE Directive
Data Scope Attribute Clauses
PRIVATE Clause
SHARED Clause
DEFAULT Clause
FIRSTPRIVATE Clause
LASTPRIVATE Clause
COPYIN Clause
COPYPRIVATE Clause
REDUCTION Clause
Clauses/Directives Summary
Directive Binding and Nesting Rules
Run-Time Library Routines
Environment Variables
Thread Stack Size and Thread Binding
Monitoring, Debugging and Performance Analysis Tools for OpenMP
Exercise 3
References and More Information
Appendix A: Run-Time Library Routines
Once you have finished the tutorial, please complete our
evaluation form
!