HOME
| OPENMP API Specification: Version 5.0 November 2018

2.13.25  Target Teams Distribute Parallel Worksharing-Loop Construct

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

Syntax

SVG-Viewer needed.

The syntax of the target teams distribute parallel worksharing-loop construct is as follows:  

 
#pragma omp target teams distribute parallel for \ 
            [clause[ [,] clause] ... ] new-line 
    for-loops  

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

SVG-Viewer needed.

SVG-Viewer needed.

The syntax of the target teams distribute parallel worksharing-loop construct is as follows:  

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

where clause can be any of the clauses accepted by the target or teams distributeparallel do directives with identical meanings and restrictions.

If an end targetteamsdistributeparallel do directive is not specified, an end target teamsdistributeparallel do directive is assumed at the end of the do-loops.

SVG-Viewer needed.

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

RestrictionsThe restrictions for the target and teams distribute parallel worksharing-loop constructs apply except for the following explicit modifications:

Cross References