Visible to Intel only — GUID: GUID-C9C54A1B-E516-428F-A3CA-E53EBF35123F
Visible to Intel only — GUID: GUID-C9C54A1B-E516-428F-A3CA-E53EBF35123F
Conditional Compilation Rules
The OpenMP* Fortran API lets you conditionally compile Intel® Fortran statements if you use the appropriate directive prefix.
The prefix depends on which source form you are using, although !$ is valid in all forms.
The prefix must be followed by a valid Intel Fortran statement on the same line.
Free Source Form
The free source form conditional compilation prefix is !$. This prefix can appear in any column as long as it is preceded only by white space. It must appear as a single word with no intervening white space. Free-form source rules apply to the directive line.
Initial lines must have a space after the prefix. Continued lines must have an ampersand as the last nonblank character on the line. Continuation lines can have an ampersand after the prefix with optional white space before and after the ampersand.
Fixed Source Form
For fixed source form programs, the conditional compilation prefix is one of the following: !$, C$ (or c$), or *$.
The prefix must start in column one and appear as a single string with no intervening white space. Fixed-form source rules apply to the directive line.
After the prefix is replaced with two spaces, initial lines must have a space or zero in column six, and continuation lines must have a character other than a space or zero in column six. For example, the following forms for specifying conditional compilation are equivalent:
c23456789 c Using OpenMP conditional compilation !$ IAM = OMP_GET_THREAD_NUM( ) + !$ * INDEX ! Using FPP conditional compilation #IFDEF _OPENMP IAM = OMP_GET_THREAD_NUM( ) + * INDEX #ENDIF