HOME
| OPENMP API Specification: Version 5.0 November 2018

2.13.5  Parallel Worksharing-Loop SIMD Construct

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

Syntax

SVG-Viewer needed.

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

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

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

SVG-Viewer needed.

SVG-Viewer needed.

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

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

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

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

SVG-Viewer needed.

DescriptionThe semantics of the parallel worksharing-loop SIMD construct are identical to explicitly specifying a parallel directive immediately followed by a worksharing-loop SIMD directive.

RestrictionsThe restrictions for the parallel construct and the worksharing-loop SIMD construct apply.

Cross References