インテル® Fortran コンパイラー 19.0 デベロッパー・ガイドおよびリファレンス

TARGET TEAMS DISTRIBUTE SIMD

OpenMP* Fortran Compiler Directive: Creates a device data environment and executes the construct on the same device. It also specifies that loop iterations will be distributed among the master threads of all thread teams in a league created by a TEAMS construct. It will be executed concurrently using SIMD instructions. This directive only applies when targeting Intel® Xeon Phi™ products.

Syntax

!$OMP TARGET TEAMS DISTRIBUTE SIMD [clause[[,] clause]... ]

   do-loop

[!$OMP END TARGET TEAMS DISTRIBUTE SIMD]

clause

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

do-loop

Is one or more DO iterations (DO loops). The DO iteration cannot be a DO WHILE or a DO loop without loop control. The DO loop iteration variable must be of type integer.

All loops associated with the construct must be structured and perfectly nested; that is, there must be no intervening code and no other OpenMP* Fortran directives between any two loops.

The iterations of the DO loop are distributed across the existing team of threads. The values of the loop control parameters of the DO loop associated with a DO directive must be the same for all the threads in the team.

This directive provides a shortcut for specifying a TARGET construct containing a TEAMS DISTRIBUTE SIMD construct.

If the END TARGET TEAMS DISTRIBUTE SIMD directive is not specified, an END TARGET TEAMS DISTRIBUTE SIMD directive is assumed at the end of do-loop.

See Also