HOME
| OPENMP API Specification: Version 5.0 November 2018

2.13.18  Target Parallel Worksharing-Loop SIMD Construct

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

Syntax

SVG-Viewer needed.

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

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

where clause can be any of the clauses accepted by the target or parallel for simd directives, except for copyin, with identical meanings and restrictions.

SVG-Viewer needed.

SVG-Viewer needed.

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

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

where clause can be any of the clauses accepted by the target or parallel do simd directives, except for copyin, with identical meanings and restrictions.

If an end target parallel do simd directive is not specified, an end targetparallel do simd 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 parallel worksharing-loop SIMD directive.

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

Cross References