HOME
| OPENMP API Specification: Version 5.0 November 2018

2.13.7  master taskloop Construct

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

Syntax

SVG-Viewer needed.

The syntax of the master taskloop construct is as follows:  

 
#pragma omp master taskloop [clause[ [,] clause] ... ] new-line 
    for-loops  

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

SVG-Viewer needed.

SVG-Viewer needed.

The syntax of the master taskloop construct is as follows:  

 
!$omp master taskloop [clause[ [,] clause] ... ] 
    do-loops 
[!$omp end master taskloop]  

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

If an end master taskloop directive is not specified, an end master taskloop directive is assumed at the end of the do-loops.

SVG-Viewer needed.

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

RestrictionsThe restrictions for the master and taskloop constructs apply.

Cross References