HOME
| OPENMP API Specification: Version 5.0 November 2018

2.13.19  targetparallelloop Construct

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

Syntax

SVG-Viewer needed.

The syntax of the target parallel loop construct is as follows:  

 
#pragma omp target parallel loop [clause[ [,] clause] ... ] new-line 
    for-loops  

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

SVG-Viewer needed.

SVG-Viewer needed.

The syntax of the target parallel loop construct is as follows:  

 
!$omp target parallel loop [clause[ [,] clause] ... ] 
    do-loops 
[!$omp end target parallel loop]  

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

If an end targetparallel loop directive is not specified, an end targetparallel loop directive is assumed at the end of the do-loops. nowait may not be specified on an end target parallel loop directive.

SVG-Viewer needed.

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

RestrictionsThe restrictions for the target and parallel loop constructs apply.

Cross References