Intel® Fortran Compiler 16.0 User and Reference Guide

TASKGROUP

OpenMP* Fortran Compiler Directive: Specifies a wait for the completion of all child tasks of the current task and all of their descendant tasks.

!$OMP TASKGROUP

   block

!$OMP END TASKGROUP

block

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

A TASKGROUP construct binds to the current task region. The binding thread set of the taskgroup region is the current team.

When a thread encounters a TASKGROUP construct, it starts executing the region. There is an implicit task scheduling point at the end of the TASKGROUP region. The current task is suspended at the task scheduling point until all child tasks that it generated in the TASKGROUP region and all of their descendant tasks complete execution.

See Also