Intel® Fortran Compiler 18.0 Developer Guide and Reference

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 when targeting Intel® Xeon Phi™ products.

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

motion-clause

Is one of the following:

  • FROM (list)

  • TO (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:

The binding task for a TARGET UPDATE construct is the encountering task. The TARGET UPDATE directive is a stand-alone directive.

A TARGET UPDATE construct must not appear inside of a target region.

See Also