Intel® Fortran Compiler 18.0 Developer Guide and Reference

TARGET PARALLEL

OpenMP* Fortran Compiler Directive: Creates a device data environment in a parallel region and executes the construct on that device. This directive only applies when targeting Intel® Xeon Phi™ products.

Syntax

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

      block

[!$OMP END TARGET PARALLEL]

clause

Can be any of the clauses accepted by the TARGET or PARALLEL directives with identical meanings and restrictions.

block

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

This directive provides a shortcut for specifying a TARGET construct immediately followed by a PARALLEL construct. The effect of any clause that applies to both constructs is as if it were applied to both constructs separately. The only exceptions are the following:

See Also