インテル® Fortran コンパイラー 14.0 ユーザー・リファレンス・ガイド

TARGET DATA

OpenMP* Fortran Compiler Directive: Creates a device data environment for the extent of the region. This directive only applies to Intel® MIC Architecture.

!$OMP TARGET DATA [clause[[,] clause]... ]

   block

!$OMP END TARGET DATA

clause

Is one or more of the following:

  • DEVICE (integer-expression)

    Specifies the target device.

    The integer-expression must evaluate to a positive scalar integer value.

    If DEVICE is not specified, the default device is determined by the internal control variable (ICV) named device-num-var.

    At most one DEVICE clause can appear in a TARGET DATA directive.

  • MAP ([map-type: ] list)

  • IF (expression)

    Specifies a conditional statement.

    The expression is a scalar logical expression that evaluates to .TRUE. or .FALSE..

    When an IF clause is specified and the expression evaluates to .FALSE., the new device data environment is not created.

    At most one IF clause can appear in a TARGET DATA directive.

block

Is a structured block (section) of statements or constructs. No branching into or out of the block of code is allowed.

The binding task region for a TARGET DATA construct is the encountering task. The target region binds to the enclosing parallel or task region.

When a TARGET DATA construct is encountered, a new device data environment is created, and the encountering task executes the target data region.

A program must not depend on any ordering of the evaluations of the clauses of the TARGET DATA directive, or on any side effects of the evaluations of the clauses.

関連情報


このヘルプトピックについてのフィードバックを送信