HOME
| OPENMP API Specification: Version 5.1 November 2020

2.16.4  parallel workshare Construct

Summary The parallel workshare construct is a shortcut for specifying a parallel construct containing a workshare construct and no other statements.

Syntax The syntax of the parallel workshare construct is as follows:  

 
!$omp parallel workshare [clause[ [,] clause] ... ] 
   loosely-structured-block  
!$omp end parallel workshare  

or  

 
!$omp parallel workshare [clause[ [,] clause] ... ] 
   strictly-structured-block  
[!$omp end parallel workshare]  

where clause can be any of the clauses accepted by the parallel directive, with identical meanings and restrictions.

Description The semantics are identical to explicitly specifying a parallel directive immediately followed by a workshare directive, and an end workshare directive immediately followed by an end parallel directive.

Restrictions The restrictions for the parallel construct and the workshare construct apply.

Cross References

SVG-Viewer needed.