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:
Implementations may (and do) differ from the standard in which clauses are supported by each directive.