Intel® Advisor User Guide

ID 766448
Date 3/31/2025
Public
Document Table of Contents

analyze.py Options

This script allows you to run an analysis on profiling data and generate report results.

Usage

advisor-python <APM>/analyze.py <project-dir> [--options]

NOTE:
Replace <APM> with $APM on Linux* OS or %APM% on Windows* OS.

Options

The following table describes options that you can use with the analyze.py script.

Option

Description

<project-dir>

Required. Specify the path to the Intel® Advisor project directory.

-h

--help

Show all script options.

--version

Display Intel® Advisor version information.

-v <verbose>

--verbose <verbose>

Specify output verbosity level:

  • 1 - Show only error messages. This is the least verbose level.

  • 2 - Show warning and error messages.

  • 3 (default) - Show information, warning, and error messages.

  • 4 - Show debug, information, warning, and error messages. This is the most verbose level.

NOTE:
This option affects the console output, but does not affect logs and report results.

--assume-dependencies (default) | --no-assume-dependencies

Assume that a loop has a dependency if the loop type is not known. When disabled, assume that a loop does not have dependencies if the loop dependency type is unknown.

Examples

  • Run analysis with default configuration on the project in the ./advi directory. The generated output is saved to the default advi/perf_models/mNNNN directory.

    advisor-python $APM/analyze.py ./advi_results
  • Run analysis using the Intel® Iris® Xe MAX graphics (gen12_dg1 configuration) configuration for the specific loops of the ./advi project. Add both analyzed loops to the report regardless of their offloading profitability. The generated output is saved to the default advi/perf_models/mNNNN directory.

    advisor-python $APM/analyze.py ./advi_results --config gen12_dg1 --select-loops [foo.cpp:34,bar.cpp:192] --no-check-profitability
  • Run analysis for a custom configuration on the ./advi project. Mark up regions for analysis and assume a code region is parallel if its type is unknown. Save the generated output to the advi/perf_models/report directory.

    advisor-python $APM/analyze.py ./advi_results --config ./myConfig.toml --markup --assume-parallel --out-dir report