You can compile your program with the SMP option to generate threaded code that exploits shared-memory parallelism. The SMP option implies the HOT option and an optimization level of OPTIMIZE(2).
The following table lists the suboptions of the SMP option. For descriptions and syntax of the suboptions, see the SMP option in z/OS XL C/C++ User's Guide.
suboption | Behavior |
---|---|
EXPLICIT | Enables directives that control explicit parallelization of loops. |
NOEXPLICIT | Disables the directives that control explicit parallelization of loops. |
OPT | Instructs the compiler to optimize as well as parallelize. The optimization is equivalent to OPTIMIZE(2) and HOT in the absence of other optimization options. |
NOOPT | Instructs the compiler to do the smallest amount of optimization that is required to parallelize the code. During development, it can be useful to turn off optimization to facilitate debugging. |