HP Fortran Programmer's Guide (September 2007)

Porting to HP Fortran
Compatibility extensions
Chapter 11 235
the HP Fortran Programmer’s Reference for detailed descriptions of the directives to check the
level of compatibility. For usage information about these directives, see “Controlling
vectorization locally” on page 160.
As noted in the table, some of the compatibility directives are effective only if the source file is
compiled with either the +Oparallel or the +Ovectorize option; otherwise, the directive is
treated as a comment and ignored. For information about using these options, see “Using the
+Ovectorize option” on page 159.
HP Fortran also recognizes several directive prefixes. A directive prefix is a vendor-specific
sequence of characters that follows the comment character and precedes the directive name.
The recognized prefixes are listed by vendor in Table 11-3. If HP Fortran reads a directive
Table 11-2 Compatibility directives
Vendor Directive Function
Option
dependency
Cray DIR$ IVDEP Disables dependency
checks.
+Oparallel or
+Ovectorize
DIR$ NO SIDE EFFECTS Disables checks for side
effects.
+Oparallel or
+Ovectorize
DIR$ [NO]CONCUR Enables [disables] code
generation for parallel
execution.
+Oparallel
DIR$ [NO]VECTOR Enables [disables]
vectorization.
+Ovectorize
FPP$ NODEPCHK Disables dependency
checks
+Oparallel or
+Ovectorize
KAI *$* [NO]CONCURRENTIZE Enables [disables] code
generation for parallel
execution.
+Oparallel
*$* [NO]VECTORIZE Enables [disables]
vectorization.
+Ovectorize
VAST VD$ [NO]VECTOR Enables [disables]
vectorization.
+Ovectorize
VD$ NODEPCHK Disables dependency
checks.
+Oparallel or
+Ovectorize