An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.


Home

OpenMP Directives: Clauses/Directives Summary


The table below summarizes which clauses are accepted by which OpenMP directives.

Clause Directive
PARALLEL DO/for SECTIONS SINGLE PARALLEL
DO/for
PARALLEL
SECTIONS
IF
PRIVATE
SHARED
DEFAULT
FIRSTPRIVATE
LASTPRIVATE
REDUCTION
COPYIN
COPYPRIVATE
SCHEDULE
ORDERED
NOWAIT


The following OpenMP directives do not accept clauses:

  • MASTER
  • CRITICAL
  • BARRIER
  • ATOMIC
  • FLUSH
  • ORDERED
  • THREADPRIVATE

Implementations may (and do) differ from the standard in which clauses are supported by each directive.