HOME
| OPENMP API Specification: Version 5.1 November 2020

2.16.7  masked taskloop Construct

Summary The masked taskloop construct is a shortcut for specifying a masked construct containing a taskloop construct and no other statements.

Syntax

SVG-Viewer needed.

The syntax of the masked taskloop construct is as follows:  

 
#pragma omp masked taskloop [clause[ [,] clause] ... ] new-line 
    loop-nest  

where loop-nest is a canonical loop nest and clause can be any of the clauses accepted by the masked or taskloop directives with identical meanings and restrictions.

SVG-Viewer needed.

SVG-Viewer needed.

The syntax of the masked taskloop construct is as follows:  

 
!$omp masked taskloop [clause[ [,] clause] ... ] 
    loop-nest 
[!$omp end masked taskloop]  

where loop-nest is a canonical loop nest and clause can be any of the clauses accepted by the masked or taskloop directives with identical meanings and restrictions.

If an end masked taskloop directive is not specified, an end masked taskloop directive is assumed at the end of the loop-nest.

SVG-Viewer needed.

The master taskloop construct, which has been deprecated, has identical syntax to the masked taskloop construct other than the use of master taskloop as the directive name.

Description The semantics are identical to explicitly specifying a masked directive immediately followed by a taskloop directive.

Restrictions The restrictions for the masked and taskloop constructs apply.

Cross References