Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

qopt-report, Qopt-report (ifx only)

Enables the generation of a YAML file that includes optimization transformation information. This description is only for ifx.

Syntax

Linux:

-qopt-report[=arg]

Windows:

/Qopt-report[=arg]

Arguments

arg

Determines the level of detail in the report. Possible values are:

0

Disables generation of an optimization report. This is the default when the option is not specified.

1 or min

Tells the compiler to create a report with minimum details.

2 or med

Tells the compiler to create a report with medium details. This is the default if you do not specify arg.

3 or max

Tells the compiler to create a report with maximum details.

Levels 1, 2, and 3 (min, med, and max) include all the information of the previous level, as well as potentially some additional information.

Default

OFF

No optimization report is generated.

Description

This option enables the generation of a YAML file that includes optimization transformation information.

The YAML-formatted file provides the optimization information for the source file being compiled. For example:

ifx -fiopenmp -qopt-report foo.f

This command will generate a file called foo.opt.yaml containing the optimization report messages.

Use opt-viewer.py (from llvm/tools/opt-viewer) to create html files from the YAML file. For example:

You can use any web-browser to open the html file to see the opt-report messages displayed inline with the original. For example:

Firefox html/foo.f.html source code

Note that the YAML file is used to drive the community llvm-opt-report tool.

NOTE:

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation. Offloading can only be enabled when using ifx.

IDE Equivalent

None

Alternate Options

None

See Also