HOME
| OPENMP API Specification: Version 5.0 November 2018

2.13.2  parallel loop Construct

SummaryThe parallel loop construct is a shortcut for specifying a parallel construct containing a loop construct with one or more associated loops and no other statements.

Syntax

SVG-Viewer needed.

The syntax of the parallel loop construct is as follows:  

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

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

SVG-Viewer needed.

SVG-Viewer needed.

The syntax of the parallelloop construct is as follows:  

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

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

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

SVG-Viewer needed.

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

Restrictions

Cross References