Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public
Document Table of Contents

PARALLEL WORKSHARE

OpenMP* Fortran Compiler Directive: Provides an abbreviated way to specify a parallel region containing a single WORKSHARE directive.

Syntax

!$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]

clause

Can be any of the clauses accepted by the PARALLEL directive.

loosely-structured-block

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

strictly-structured-block

Is a Fortran BLOCK construct. You cannot branch into or out of the BLOCK construct.