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

3.4  if Clause

Name: if

Properties: default

Arguments

Name

Type

Properties

if-expression

expression of logical type

default

Modifiers

Name

Modifies

Type

Properties

directive-name-modifier

if-expression

Keyword: directive-name

unique

Directives

cancel, parallel, simd, target, target data, target enter data, target exit data, target update, task, taskloop

Semantics

If no directive-name-modifier is specified then the effect is as if a directive-name-modifier was specified with the directive-name of the directive on which the clause appears.

The effect of the if clause depends on the construct to which it is applied. If the construct is not a combined or composite construct then the effect is described in the section that describes that construct. For combined or composite constructs, the if clause only applies to the semantics of the construct named in the directive-name-modifier. For a combined or composite construct, if no directive-name-modifier is specified then the if clause applies to all constituent constructs to which an if clause can apply.

Restrictions

Restrictions to the if clause are as follows:

Cross References