Go to main content
Oracle® Developer Studio 12.6: C User's Guide

Exit Print View

Updated: July 2017

4.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 Developer Studio 12.6: OpenMP API User’s Guide.