The syntax of the teams loop construct is as follows:
#pragma omp teams loop [clause[ [,] clause] ... ] new-line
for-loops
where clause can be any of the clauses accepted by the teams or loop directives with identical meanings and restrictions.
SummaryThe teams loop construct is a shortcut for specifying a teams construct containing a loop construct and no other statements.
Syntax
The syntax of the teams loop construct is as follows:
!$omp teams loop [clause[ [,] clause] ... ]
do-loops
[!$omp end teams loop]
where clause can be any of the clauses accepted by the teams or loop directives with identical meanings and restrictions.
If an end teams loop directive is not specified, an end teams loop directive is assumed at the end of the do-loops.
DescriptionThe semantics are identical to explicitly specifying a teams directive immediately followed by a loop directive.
RestrictionsThe restrictions for the teams and loop constructs apply.