HOME
| OPENMP API Specification: Version 5.1 November 2020

2.16.2  parallel loop Construct

Summary The parallel loop construct is a shortcut for specifying a parallel construct containing a loop construct with a canonical loop nest 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 
   loop-nest  

where loop-nest is a canonical loop nest and 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] ... ] 
   loop-nest 
[!$omp end parallel loop]  

where loop-nest is a canonical loop nest and 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 loop-nest.

SVG-Viewer needed.

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

Restrictions The restrictions for the parallel construct and the loop construct apply.

Cross References