HOME
| OPENMP API Specification: Version 5.0 November 2018

2.13.21  target teams Construct

SummaryThe 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] ... ] 
    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.

RestrictionsThe restrictions for the target and teams constructs apply.

Cross References