OpenMP Directive and Clause Usage
The following table displays OpenMP clauses and the OpenMP directives with which you can use them.
Clauses | Directives | |||||
---|---|---|---|---|---|---|
parallel | for | sections | parallel for | parallel sections | single | |
if | x | x | x | |||
num_threads | x | x | x | |||
copyin | x | x | x | |||
shared | x | x | x | |||
default | x | x | x | |||
ordered | x | x | ||||
schedule | x | x | ||||
nowait | x | x | x | |||
private | x | x | x | x | x | x |
firstprivate | x | x | x | x | x | x |
lastprivate | x | x | x | x | ||
reduction | x | x | x | x | x | |
copyprivate | x |