Oracle® Solaris Studio 12.4: C User's Guide

Exit Print View

Updated: March 2015
 
 

3.1 Parallelizing Using OpenMP

The C compiler supports the OpenMP API for parallelization. The API consists of a set of pragmas, runtime routines, and environment variables. Information on the OpenMP API specification is at the OpenMP web site at 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 -xopenmp[={parallel|noopt|none}].

For information specific to this implementation of OpenMP, including pragmas, environment variables, and runtime routines, see the Oracle Solaris Studio OpenMP API User's Guide.