Portability of directives

XL Fortran supports many directives available with other Fortran products. This ensures easy portability between products. If your code contains trigger_constants other than the defaults in XL Fortran, you can use the -qdirective compiler option to specify them. For instance, if you are porting CRAY code contained in a file xx.f, you would use the following command to add the CRAY trigger_constant:

   xlf95 xx.f -qdirective=mic\$

For fixed source form code, in addition to the ! value for the trigger_head portion of the directive, XL Fortran also supports the trigger_head values C, c, and *.

For more information, see the -qdirective option.

XL Fortran supports a number of programming terms as synonyms to ease the effort of porting code from other Fortran products. Those terms that are supported are dependent on context, as indicated in the following tables:

Table 26. PARALLEL DO Clauses and their XL Fortran synonyms
PARALLEL DO Clause XL Fortran Synonym
LASTLOCAL LASTPRIVATE
LOCAL PRIVATE
MP_SCHEDTYPE
and CHUNK
SCHEDULE
SAVELAST LASTPRIVATE
SHARE SHARED
NEW PRIVATE

Table 27. PARALLEL DO scheduling types and their XL Fortran synonyms
Scheduling Type XL Fortran Synonym
GSS GUIDED
INTERLEAVE STATIC(1)
INTERLEAVED STATIC(1)
INTERLEAVE(n) STATIC(n)
INTERLEAVED(n) STATIC(n)
SIMPLE STATIC

Table 28. PARALLEL SECTIONS clauses and their XL Fortran synonyms
PARALLEL SECTIONS Clause XL Fortran Synonym
LOCAL PRIVATE
SHARE SHARED
NEW PRIVATE