In C/C++, OpenMP directives are specified by using the #pragma mechanism provided by the C and C++ standards.
This chapter describes the syntax and behavior of OpenMP directives.
In C/C++, OpenMP directives are specified by using the #pragma mechanism provided by the C and C++ standards.
In Fortran, OpenMP directives are specified by using special comments that are identified by unique sentinels. Also, a special comment form is available for conditional compilation.
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.
RestrictionsThe following restriction applies to all OpenMP directives: