Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 6/24/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

FINAL Clause

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

Syntax

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.