Intel® C++ Compiler 16.0 User and Reference Guide

qopt-report, Qopt-report

Tells the compiler to generate an optimization report. Option -qopt-report is the replacement option for -opt-report, which is deprecated.

Syntax

Linux and OS X:

-qopt-report[=n]

Windows:

/Qopt-report[:n]

Arguments

n

(Optional) Indicates the level of detail in the report. You can specify values 0 through 5. If you specify zero, no report is generated. For levels n=1 through n=5, each level includes all the information of the previous level, as well as potentially some additional information. Level 5 produces the greatest level of detail. If you do not specify n, the default is level 2, which produces a medium level of detail.

Default

OFF

No optimization report is generated.

Description

This option tells the compiler to generate a collection of optimization report files, one per object; this is the same output produced by option [q or Q]opt-report-per-object.

If you prefer another form of output, you can specify option [q or Q]opt-report-file.

If you specify a level (n) higher than 5, a warning will be displayed and you will get a level 5 report.

When optimization reporting is enabled, the default is -qopt-report-phase=all (Linux* OS and OS X*) or /Qopt-report-phase:all (Windows* OS).

For a description of the information that each n level provides, see the Example section in option [q or Q]opt-report-phase.

IDE Equivalent

Visual Studio: Diagnostics > Optimization Diagnostic Level

Eclipse: Compilation Diagnostics > Optimization Diagnostic Level

Xcode: None

Alternate Options

None

Example

If you only want reports about certain diagnostics, you can use this option with option [q or Q]opt-report-phase. The phase you specify determines which diagnostics you will receive.

For example, the following examples show how to get reports about certain specific diagnostics.

To get this specific report

Specify

Auto-parallelizer diagnostics

Linux* OS and OS X*: -qopt-report -qopt-report-phase=par

Windows* OS: /Qopt-report /Qopt-report-phase:par

OpenMP parallelizer diagnostics

Linux* OS and OS X*: -qopt-report -qopt-report-phase=openmp

Windows* OS: /Qopt-report /Qopt-report-phase:openmp

Vectorizer diagnostics

Linux* OS and OS X*: -qopt-report -qopt-report-phase=vec

Windows* OS: /Qopt-report /Qopt-report-phase:vec

See Also