1. Introduction to the C Compiler
2. C-Compiler Implementation-Specific Information
3.3.1 PARALLEL or OMP_NUM_THREADS
3.3.5 Using restrict in Parallel Code
3.4 Data Dependence and Interference
3.4.1 Parallel Execution Model
3.4.2 Private Scalars and Private Arrays
3.6 Load Balance and Loop Scheduling
3.6.1 Static or Chunk Scheduling
3.8 Aliasing and Parallelization
3.8.1 Array and Pointer References
3.8.3 Explicit Parallelization and Pragmas
Default Scoping Rules for private and shared Variables
7. Converting Applications for a 64-Bit Environment
8. cscope: Interactively Examining a C Program
A. Compiler Options Grouped by Functionality
B. C Compiler Options Reference
C. Implementation-Defined ISO/IEC C99 Behavior
E. Implementation-Defined ISO/IEC C90 Behavior
H. The Differences Between K&R Solaris Studio C and Solaris Studio ISO C
The C compiler accepts the OpenMP API for shared memory parallelization natively. The API consists of a set of parallelization pragmas. Information on the OpenMP API specification is at the OpenMP web site, http://www.openmp.org/.
To enable the compiler’s OpenMP support and recognition of the OpenMP pragmas, compile with the -xopenmp option. Without -xopenmp, the compiler treats the OpenMP pragmas as comments. See B.2.123 -xopenmp[=i].
See the Solaris Studio OpenMP API User’s Guide for details.
The OpenMP runtime system can issue warnings for non-fatal errors. Use the following function to register a call back function to handle these warnings:
int sunw_mp_register_warn(void (*func) (void *) )
You can access the prototype for this function by issuing a #include preprocessor directive for <sunw_mp_misc.h>.
If you do not want to register a function, set the environment variable SUNW_MP_WARN to TRUE and the warning messages are sent to stderr. For more information on SUNW_MP_WARN, see 3.3.3 SUNW_MP_WARN.
For information specific to this implementation of OpenMP, see the Solaris Studio OpenMP API User’s Guide.