Clauses in OpenMP/3
copyin(list)
- the list must contain common block (or global) names that have been declared threadprivate
- data in the master thread in that common block will be copied to the thread private storage at the beginning of the parallel region
- note that there is no “copyout” clause; data in private common block is not available outside of that thread
if(scalar_logical_expression)
- if an “if” clause is present, the enclosed code block is executed in parallel only if the scalar_logical_expression evaluates to .TRUE.
ordered
- only for DO/for work sharing constructs. The code enclosed within the ORDERED block will be executed in the same sequence as sequential execution
schedule(kind[,chunk])
- only for DO/for work sharing constructs. Specifies the scheduling discipline for the loop iterations
nowait
- end of work sharing construct and SINGLE directive implies a synchronization point unless nowait is specified