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

TARGET UPDATE

OpenMP* Fortran Compiler Directive: Makes the list items in the device data environment consistent with their corresponding original list items. This directive only applies to Intel® MIC Architecture.

!$OMP TARGET UPDATE motion-clause [, clause[[,] clause]... ]

motion-clause

Is one of the following:

  • TO (list)

  • FROM (list)

The list is the name of one or more variables or common blocks that are accessible to the scoping unit. Subobjects cannot be specified. Each name must be separated by a comma, and a common block name must appear between slashes (/ /).

For each list item in a TO or FROM clause, there is a corresponding list item and an original list item; for more information, see the MAP clause. Note that if the corresponding list item is not present in the device data environment, the behavior is unspecified.

For each list item in a TO clause, the value of the original list item is assigned to the corresponding list item.

For each list item in a FROM clause, the value of the corresponding list item is assigned to the original list item.

A list item may only appear in a TO or FROM clause, but not both.

clause

Is one 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 UPDATE directive.

  • 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 TARGET UPDATE directive is ignored.

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

The binding task for a TARGET UPDATE construct is the encountering task. The target region binds to the enclosing parallel or task region. A TARGET UPDATE construct must not appear inside of a target region.

関連情報


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