Visible to Intel only — GUID: GUID-27537DCB-2260-4FFE-87F2-1F20AA9EAE52
Visible to Intel only — GUID: GUID-27537DCB-2260-4FFE-87F2-1F20AA9EAE52
TARGET ENTER DATA
OpenMP* Fortran Compiler Directive: Specifies that variables are mapped to a device data environment.
Syntax
!$OMP TARGET ENTER DATA [clause[[,] clause]... ]
The binding task for the TARGET ENTER DATA construct is the encountering task. TARGET ENTER DATA is a stand-alone directive.
When a TARGET ENTER DATA construct is encountered, the list items in the MAP clauses are mapped to the device data environment according to map-type. If a map-type is specified in a MAP clause, it must be either TO or ALLOC. If no map-type is specified, it is as if TO appeared.
The TARGET ENTER DATA construct executes as if it was enclosed in a TASK construct.
When a DEPEND clause is present, it acts as if it appeared on the implicit TASK construct that encloses the TARGET ENTER DATA construct.
If there is no DEVICE clause, the default device is determined by the internal control variable (ICV) named default-device-var.
When an IF clause is present and the IF clause scalar-logical-expression evaluates to .FALSE., the device is the host.