HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)
• schedule(kind[,chunksize])
• nowait
See “OpenMP Clauses” (page 139) for more information.
OMP FLUSH Pragma
#pragma omp flush [(list)]
where (list) names the variables that will be synchronized.
The flush pragma, whether explicit or implied, specifies a cross-thread sequence point
at which the implementation is required to ensure that all the threads in a team have a
consistent view of certain objects in the memory. A flush directive without a list is
implied for the following directives:
• barrier
• an entry to and exit from critical
• at entry to and exit from ordered
• at entry to and exit from parallel
• at entry to and exit from parallel for
• at entry to and exit from parallel sections
• at exit from single
• at exit from for
• at exit from sections
NOTE: The directive is not implied if a nowait clause is present.
OMP MASTER Pragma
#pragma omp master
structured-block
The master pragma directs that the structured-block following it should be executed
by the master thread (thread 0) of the team. Other threads in the team do not execute
the associated block.
OMP ORDERED Pragma
#pragma omp ordered
structured-block
The ordered pragma indicates that the following structured block should be executed
in the same order in which iterations will be executed in a sequential loop.
136 Pragma Directives and Attributes