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 MASTER

OpenMP* Fortran Compiler Directive: (Deprecated; see PARALLEL MASKED) Creates a PARALLEL construct containing a MASTER construct, with no Fortran statements in the PARALLEL construct that are not also in the MASTER construct. This feature is only available for ifx.

Syntax

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

   loosely-structured-block

!$OMP END PARALLEL MASTER

-or-

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

   strictly-structured-block

[!$OMP END PARALLEL MASTER]

clause

Can be any of the clauses accepted by the PARALLEL or MASTER 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 MASTER construct nested inside of it. The semantics are identical to a MASTER construct specified immediately after a PARALLEL construct; the only Fortran statements in the construct are inside block.

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

The PARALLEL MASTER directive is deprecated; you should use the PARALLEL MASKED directive.