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

ID 767251
Date 3/22/2024
Public

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

Document Table of Contents

PARALLEL MASKED

OpenMP* Fortran Compiler Directive: Creates a PARALLEL construct containing a MASKED construct, with no Fortran statements in the PARALLEL construct which are not also in the MASKED construct. This feature is only available for ifx.

Syntax

!$OMP PARALLEL MASKED [clause[[,] clause]... ]

   loosely-structured-block

!$OMP END PARALLEL MASKED

-or-

!$OMP PARALLEL MASKED [clause[[,] clause]... ]

   strictly-structured-block

[!$OMP END PARALLEL MASKED]

clause

Can be any of the clauses accepted by the PARALLEL or MASKED directives with identical meanings and restrictions.

loosely-structured-block

Is a structured block (section) of statements or constructs. You cannot branch into or out of the block.

strictly-structured-block

Is a Fortran BLOCK construct. You cannot branch into or out of the BLOCK construct.

This combined directive provides a shortcut for specifying a PARALLEL construct with a MASKED construct nested inside of it. The semantics are identical to a MASKED construct specified immediately after a PARALLEL construct; the only Fortran statements in the construct are inside the block.

All restrictions for PARALLEL and MASKED constructs apply to this combined construct.