HOME
| OPENMP API Specification: "Version 5.2 -- GIT rev 95b2e3a44"

4.4.3  collapse Clause

Name: collapse

Properties: unique

Arguments

Name

Type

Properties

n

expression of integer type

default

Directives

distribute

,

do

,

for

,

loop

,

simd

,

taskloop

Semantics

The collapse clause associates one or more loops with the directive on which it appears for the purpose of identifying the portion of the depth of the canonical loop nest to which to apply the semantics of the directive. The argument n specifies the number of loops of the associated loop nest to which to apply those semantics. On all directives on which the collapse clause may appear, the effect is as if a value of one was specified for n if the collapse clause is not specified.

Restrictions

Cross References