15.2.4.11 PDONE Directive (TU*X only)

The PDONE directive is an executable statement that terminates the current parallel DO loop. It takes the following form:

c$PAR PDONE

c
Is one of the following: C (or c), !, or * (see Section 15.2.1).

Rules and Behavior

The PDONE directive terminates the current parallel DO loop early, without completing any iterations that have not yet been assigned to a thread. Any iterations that have already been assigned to a thread are completed.

PDONE directives are permitted only within the lexical extent of a PDO or PARALLEL DO construct.

When the scheduling type is STATIC or INTERLEAVED, a PDONE directive has no effect because all iterations are assigned before execution of the parallel DO loop begins.


Previous Page Next Page Table of Contents