Download PGI User's Guide
Transcript
ATOMIC The ORDERED directive can appear only in the dynamic extent of a DO or PARALLEL DO directive that includes the ORDERED clause. The code block between the ORDERED / END ORDERED directives is executed by only one thread at a time, and in the order of the loop iterations. This sequentializes the ordered code block while allowing parallel execution of statements outside the code block. The following additional restrictions apply to the ORDERED directive: • The ORDERED code block must be a structured block. It is illegal to branch into or out of the block. • A given iteration of a loop with a DO directive cannot execute the same ORDERED directive more than once, and cannot execute more than one ORDERED directive. ATOMIC The OpenMP ATOMIC directive uses following syntax: !$OMP ATOMIC The ATOMIC directive is semantically equivalent to enclosing the following single statement in a CRITICAL / END CRITICAL directive pair. The statement must be of one of the following forms: x = x operator expr x = expr operator x x = intrinsic (x, expr) x = intrinsic (expr, x) where x is a scalar variable of intrinsic type, expr is a scalar expression that does not reference x, intrinsic is one of MAX, MIN, IAND, IOR, or IEOR, and operator is one of +, *, -, /, .AND., .OR., .EQV., or .NEQV.. FLUSH The OpenMP FLUSH directive uses the following syntax: !$OMP FLUSH [(list)] The FLUSH directive ensures that all processor-visible data items, or only those specified in list when it’s present, are written back to memory at the point at which the directive appears. 147
Related documents
PGI User's Guide
PGI User's Guide Release 9.0 - Faculty of Science HPC Site
PGI User's Guide
PGI User's Guide - The University of Sheffield High Performance and
PGI User's Guide
PGI 5 User's Guide
PGI 6.1 User`s Guide - University of Alberta
PGI Compiler User`s Guide
PGI Compiler Reference Manual
PGI 5 User's Guide
PGI 5 User's Guide - The Portland Group
Intel(R) C++ Compiler for Linux* Systems User's Guide