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:
-reduction requires -autopar.
-autopar includes -depend and loop structure optimization.
-parallel is equivalent to -autopar -explicitpar.
-noautopar, -noexplicitpar, -noreduction are the negations.
Parallelization options can be in any order, but they must be all lowercase.
Reduction operations are not analyzed for explicitly parallelized loops.
Use of any of the parallelization options requires a WorkShop license.
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 |