OpenMP* Report

The -openmp-report (Linux* and Mac OS* X) or /Qopenmp-report (Windows*) option controls the diagnostic levels for OpenMP* reporting. The OpenMP* report information is not generated unless you specify the option with a value of either 1 or 2. Specifying 2 provides the most useful information.

You must specify the -openmp (Linux and Mac OS X) or /Qopenmp (Windows) along with this option.

Linux OS and Mac OS X

Windows OS

Description

-openmp-report 2

/Qopenmp-report:2

Report results are same as when specifying 1 except the results also include diagnostics indicating constructs, like directives, that were handled successfully. This is the recommend level.

-openmp-report 1

/Qopenmp-report:1

Reports on loops, regions, and sections that were parallelized successfully. This is the default level.

-openmp-report 0

/Qopenmp-report:0

No diagnostics report generated.

The following example commands demonstrate how to run the report using the combined commands.

Operating System

Syntax Examples

Linux and Mac OS X

icpc -openmp -openmp-report 2 sample1.cpp sample2.cpp

Windows

icl /Qopenmp /Qopenmp-report:2 sample1.cpp sample2.cpp

Note iconNote

Linux and Mac OS X: The space between the option and the level is optional.

Windows: The colon between the option and level is optional.

The following example results illustrate the typical format of the generated information:

Example results

openmp_sample.c(96): (col. 5) remark: OpenMP multithreaded code generation for SINGLE was successful.

openmp_sample.c(106): (col. 5) remark: OpenMP DEFINED LOOP WAS PARALLELIZED.

openmp_sample.c(113): (col. 5) remark: OpenMP DEFINED LOOP WAS PARALLELIZED.

openmp_sample.c(93): (col. 3) remark: OpenMP DEFINED REGION WAS PARALLELIZED.

See also: