# 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.

Parent topic: O to P

## See Also

OpenMP Fortran Compiler Directives
Syntax Rules for Compiler Directives
PARALLEL directive
MASTER directive