The Sun Studio compilers support the OpenMP parallelization model natively as the primary parallelization model. For information on OpenMP parallelization, see the OpenMP API User’s Guide. Sun and Cray-style parallelization refer to legacy applications and are no longer supported by current Sun Studio compilers.
.
Table 10–1 Fortran 95 Parallelization Options
Option |
Flag |
---|---|
Automatic (only) |
-autopar |
Automatic and Reduction |
-autopar -reduction |
Show which loops are parallelized |
-loopinfo |
Show warnings with explicit |
-vpara |
Allocate local variables on stack |
-stackvar |
Compile for OpenMP parallelization |
-xopenmp |
Notes on these options:
Many of these options have equivalent synonyms, such as -autopar and -xautopar. Either may be used.
The compiler prof/gprof profiling options -p, -xpg, and -pg should not be used along with any of the parallelization options. The runtime support for these profiling options is not thread-safe. Invalid results or a segmentation fault could occur at runtime.
-reduction requires -autopar.
-autopar includes -depend and loop structure optimization.
-noautopar, -noreduction are the negations.
Parallelization options can be in any order, but they must be all lowercase.
Reduction operations are not analyzed in explicitly parallelized loops.
-xopenmp also invokes -stackvar automatically.
The options -loopinfo and -vpara must be used in conjunction with one of the parallelization options.