Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

ASSUMES Directive for OpenMP

OpenMP* Fortran Compiler Directive: Provides hints to the optimizer about the current compilation unit and all the code it can reach through procedure calls.

Syntax

!$OMP ASSUMES clause[[[,] clause]... ]

clause

Is an ASSUMPTION clause.

The ASSUMES directive is an informational directive that provides optimization hints to the compiler. The scope of the directive is the code executed in the current compilation unit, and all code that can be reached from the current compilation unit through procedure calls. It is a pure directive, so it can appear in a Fortran PURE procedure.

The ASSUMES directive must appear in the specification part of a module or subprogram, following all IMPLICIT, IMPORT, or USE statements.