Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 927 Bytes

taskwait_directive.md

File metadata and controls

29 lines (21 loc) · 927 Bytes
layout title release_number author tutorial
tutorial_page
OpenMP Directives: Synchronization Constructs: TASKWAIT Directive
UCRL-MI-133316
Blaise Barney, Lawrence Livermore National Laboratory
OpenMP

Purpose:

  • New with OpenMP 3.1

  • The TASKWAIT construct specifies a wait on the completion of child tasks generated since the beginning of the current task.

Format:

Fortran

!$OMP TASKWAIT

C/C++

#pragma omp taskwait  newline

Restrictions:

Because the taskwait construct does not have a C language statement as part of its syntax, there are some restrictions on its placement within a program. The taskwait directive may be placed only at a point where a base language statement is allowed. The taskwait directive may not be used in place of the statement following an if, while, do, switch, or label. See the OpenMP 3.1 specifications document for details.