Intel® Fortran Compiler 18.0 Developer Guide and Reference

FINAL Clause

Parallel Directive Clause: Specifies that the generated task will be a final task.

FINAL (scalar-logical-expression)

scalar-logical-expression

Is a scalar logical expression. When the expression evaluates to .TRUE., it specifies that the generated task will be a final task.

All task constructs encountered during execution of a final task will generate included tasks.

Note that if a variable is used in a FINAL clause expression of a directive construct, it causes an implicit reference to the variable in all enclosing constructs.

Only a single FINAL clause can appear in the directive.