HOME
| OPENMP API Specification: Version 5.1 November 2020

2.16.26  Target Teams Distribute Parallel Worksharing-Loop SIMD Construct

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

Syntax

SVG-Viewer needed.

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

 
#pragma omp target teams distribute parallel for simd \ 
            [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 target or teams distributeparallelfor simd directives with identical meanings and restrictions.

SVG-Viewer needed.

SVG-Viewer needed.

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

 
!$omp target teams distribute parallel do simd [clause[ [,] clause] ... ] 
    loop-nest 
[!$omp end target teams distribute parallel do simd]  

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

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

SVG-Viewer needed.

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

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

Cross References