Fortran Programming Guide

Parallel Options and Directives Summary

The following table shows the f77 5.0 and f90 2.0 compilation options related to parallelization.

Table 10-1 Parallelization Options

Option 

Flag 

Automatic (only)

-autopar

Automatic and Reduction  

-autopar -reduction

Explicit (only)

-explicitpar

Automatic and Explicit  

-parallel

Automatic and Reduction and Explicit  

-parallel -reduction

Show which loops are parallelized  

-loopinfo

Show warnings with explicit  

-vpara

Allocate local variables on stack  

-stackvar

Use Sun-style MP directives 

-mp=sun

Use Cray-style MP directives 

-mp=cray

Notes on these options:

The following table shows the f77/f90 and f90 parallel directives.

Table 10-2 Parallel Directives

Parallel Directive  

Purpose 

C$PAR TASKCOMMON

Declares a common block private 

C$PAR DOALL optional qualifiers

Parallelizes next loop, if possible 

C$PAR DOSERIAL

Inhibits parallelization of next loop 

C$PAR DOSERIAL*

Inhibits parallelization of loop nest