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

ID 767251
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

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.