HOME
| OPENMP API Specification: "Version 5.2 -- GIT rev 95b2e3a44"

5.5.9  task_reduction Clause

Name: task_reduction

Properties: data-environment attribute, data-sharing attribute, privatization, reduction scoping

Arguments

Name

Type

Properties

list

list of variable list item type

default

Modifiers

Name

Modifies

Type

Properties

reduction-identifier

list

An OpenMP reduction identifier

required, ultimate

Directives

taskgroup

Semantics

The task_reduction clause is a reduction scoping clause, as described in Section 5.5.6, that specifies a reduction among tasks. For each list item, the number of copies is unspecified. Any copies associated with the reduction are initialized before they are accessed by the tasks that participate in the reduction. After the end of the region, the original list item contains the result of the reduction.

Restrictions

Restrictions to the task_reduction clause are as follows:

Cross References