Intel® Fortran Compiler 18.0 Developer Guide and Reference

TARGET DATA

OpenMP* Fortran Compiler Directive: Maps variables to a device data environment for the extent of the region. This directive only applies when targeting Intel® Xeon Phi™ products.

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

   block

!$OMP END TARGET DATA

clause

Is one or more of the following:

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.

The same variable can be used in both the MAP clause and the USE_DEVICE_PTR clause:

!$OMP TARGET DATA MAP(X) USE_DEVICE_PTR(X)
    block
!$OMP END TARGET DATA

See Also