Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

TARGET TEAMS

OpenMP* Fortran Compiler Directive: Creates a device data environment and executes the construct on the same device. It also creates a league of thread teams with the primary thread in each team executing the structured block.

Syntax

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

   loosely-structured-block

!$OMP END TARGET TEAMS

-or-

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

   strictly-structured-block

[!$OMP END TARGET TEAMS]

clause

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

loosely-structured-block

Is a structured block (section) of statements or constructs. You cannot branch into or out of the block.

strictly-structured-block

Is a Fortran BLOCK construct. You cannot branch into or out of the BLOCK construct.

This directive provides a shortcut for specifying a TARGET construct immediately followed by a TEAMS construct.