OpenMP directives are specified with the #pragma mechanism provided by the C standard.
This chapter describes the syntax and behavior of OpenMP directives.
OpenMP directives are specified with the #pragma mechanism provided by the C standard.
OpenMP directives are specified with attribute specifiers or the #pragma mechanism provided by the C++ standard.
OpenMP directives are specified with stylized comments that are identified by unique sentinels. Also, a stylized comment form is available for conditional compilation.
If a directive appears in the declarative part of a module then the behavior is as if that directive appears after any references to that module.
Compilers can therefore ignore OpenMP directives and conditionally compiled code if support of the OpenMP API is not provided or enabled. A compliant implementation must provide an option or interface that ensures that underlying support of all OpenMP directives and OpenMP conditional compilation mechanisms is enabled. In the remainder of this document, the phrase OpenMP compilation is used to mean a compilation with these OpenMP features enabled.
This chapter uses NULL as a generic term for a null pointer constant, true as a generic term for a non-zero integer value and false as a generic term for an integer value of zero.
This chapter uses NULL as a generic term for the named constant C_NULL_PTR, true as a generic term for a logical value of .TRUE. and false as a generic term for a logical value of .FALSE..
Restrictions The following restrictions apply to OpenMP directives: