HOME
| OPENMP API Specification: Version 5.1 November 2020

2.16.21  target teams Construct

Summary The target teams construct is a shortcut for specifying a target construct containing a teams construct and no other statements.

Syntax

SVG-Viewer needed.

The syntax of the target teams construct is as follows:  

 
#pragma omp target teams [clause[ [,] clause] ... ] new-line 
   structured-block  

where clause can be any of the clauses accepted by the target or teams directives with identical meanings and restrictions.

SVG-Viewer needed.

SVG-Viewer needed.

The syntax of the target teams construct is as follows:  

 
!$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]  

where clause can be any of the clauses accepted by the target or teams directives with identical meanings and restrictions.

SVG-Viewer needed.

Description The semantics are identical to explicitly specifying a target directive immediately followed by a teams directive.

Restrictions The restrictions for the target and teams constructs apply.

Cross References