HOME
| OPENMP API Specification: Version 5.0 November 2018

2.13.6  parallel master Construct

SummaryThe parallel master construct is a shortcut for specifying a parallel construct containing a master construct and no other statements.

Syntax

SVG-Viewer needed.

The syntax of the parallel master construct is as follows:  

 
#pragma omp parallel master [clause[ [,] clause] ... ] new-line 
   structured-block  

where clause can be any of the clauses accepted by the parallel or master directives, with identical meanings and restrictions.

SVG-Viewer needed.

SVG-Viewer needed.

The syntax of the parallel master construct is as follows:  

 
!$omp parallel master [clause[ [,] clause] ... ] 
   structured-block  
!$omp end parallel master  

where clause can be any of the clauses accepted by the parallel or master directives, with identical meanings and restrictions.

SVG-Viewer needed.

DescriptionThe semantics are identical to explicitly specifying a parallel directive immediately followed by a master directive.

RestrictionsThe restrictions for the parallel construct and the master construct apply.

Cross References