HOME
| OPENMP API Specification: Version 5.0 November 2018

2.10.3  taskloop simd Construct

SummaryThe taskloop simd construct specifies a loop that can be executed concurrently using SIMD instructions and that those iterations will also be executed in parallel using explicit tasks. The taskloop simd construct is a composite construct.

Syntax

SVG-Viewer needed.

The syntax of the taskloop simd construct is as follows:  

 
#pragma omp taskloop simd [clause[[,] clause] ...] new-line 
    for-loops  

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

SVG-Viewer needed.

SVG-Viewer needed.

The syntax of the taskloop simd construct is as follows:  

 
!$omp taskloop simd [clause[[,] clause] ...] 
    do-loops 
[!$omp end taskloop simd]  

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

If an end taskloop simd directive is not specified, an end taskloop simd directive is assumed at the end of the do-loops.

SVG-Viewer needed.

BindingThe binding thread set of the taskloop simd region is the current team. A taskloop simd region binds to the innermost enclosing parallel region.

DescriptionThe taskloop simd construct will first distribute the iterations of the associated loop(s) across tasks in a manner consistent with any clauses that apply to the taskloop construct. The resulting tasks will then be converted to a SIMD loop in a manner consistent with any clauses that apply to the simd construct, except for the collapse clause. For the purposes of each task’s conversion to a SIMD loop, the collapse clause is ignored and the effect of any in_reduction clause is as if a reduction clause with the same reduction operator and list items is present on the construct.

Execution Model Events This composite construct generates the same events as the taskloop construct.

Tool Callbacks This composite construct dispatches the same callbacks as the taskloop construct.

Restrictions

Cross References