Intel® Advisor User Guide

ID 766448
Date 7/13/2023

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

Document Table of Contents
Give Feedback Options

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


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

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


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




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



Show all script options.


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.

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.

--assume-hide-taxes [<loop-id> | <file-name>:<line-number>]

Use an optimistic approach to estimate invocation taxes: hide all invocation taxes except the first one.

You can provide a comma-separated list of loop IDs and source locations to hide taxes for. If you do not provide a list, taxes are hidden for all loops.

--assume-never-hide-taxes (default)

Use a pessimistic approach to estimate invocation taxes: do not hide invocation taxes.

--assume-ndim-dependency (default) | --no-assume-ndim-dependency

When searching for an optimal N-dimensional offload, assume there are dependencies between inner and outer loops.

--assume-parallel | --no-assume-parallel (default)

Assume that a loop is parallel if the loop type is not known.

--assume-single-data-transfer (default) | --no-assume-single-data-transfer

Assumed data is transferred once for each offload, and all instances share the data. When disabled, assume each data object is transferred for every instance of an offload that uses it.

This method assumes no data re-use between calls to the same kernel.

This option requires you to enable the following options during the Trip Counts collection:
  • With, use --collect basic or --collect full.
  • With advisor --collect=tripcounts, use data-transfer=<mode>.

--atomic-access-pattern <pattern>

Select an atomic access pattern. Possible options: sequential, partial_sums_16, same. By default, it is set to partial_sums_16.

--assume-atomic-optimization-ratio <ratio>

Model atomic accesses as a number of parallel sums. Specify one of the following values: 8, 16, 32, 64, 128 to model a specific number of parallel sums. Specify 0 value to search for an optimal number of parallel sums.

Default value: '16'.

--check-profitability (default) | --no-check-profitability

Check the profitability of offloading regions. Only regions that can benefit from the increased speed are added to a report.

When disabled, add all evaluated regions to a report, regardless of the profitability of offloading specific regions.

--config <config>

Specify a configuration file by absolute path or name. If you choose the latter, the model configuration directory is searched for the file first, then the current directory.

The following device configurations are available: xehpg_512xve (default), xehpg_256xve , gen11_icl, gen12_tgl, gen12_dg1, gen9_gt4, gen9_gt3, gen9_gt2.

You can specify several configurations by using the option more than once.

--count-logical-instructions (default) | --no-count-logical-instructions

Use the projection of x86 logical instructions to GPU logical instructions.

--count-memory-instructions (default) | --no-count-memory-instructions

Use the projection of x86 instructions with memory to GPU SEND/SENDS instructions.

--count-mov-instructions | --no-count-mov-instructions (default)

Use the projection of x86 MOV instructions to GPU MOV instructions.

--count-send-latency {all, first, off}

Select how to model SEND instruction latency.

  • all - Assume each SEND instruction has an uncovered latency. This is a default value for GPU-to-GPU modeling with --gpu, --profile-gpu, or --analyze-gpu-kernels-only.
  • first - Assume only the first SEND instruction in a thread has an uncovered latency. This is a default value for CPU-to-GPU modeling.
  • off - Do not model SEND instruction latency.

--cpu-scale-factor <integer><