Intel® Advisor User Guide

ID 766448
Date 12/16/2022
Public

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

Document Table of Contents

Filtering to Minimize Analysis Overhead

Issue

Running your target application with the Intel® Advisor can take substantially longer than running your target application without the Intel Advisor. Depending on an accuracy level and analyses you choose for a perspective, different overhead is added to your application execution time. For example:

Runtime Overhead / Analysis

Survey

Characterization

Dependencies

MAP

Target application runtime with Intel® Advisor compared to runtime without Intel® Advisor

1.1x longer

2 - 55x longer

5 - 100x longer

5 - 20x longer

Solution

Use the following techniques to skip uninteresting modules and/or analyze only interesting modules.

Filter Modules

Minimize collection and finalization overhead.

Applicable analyses: Survey, Characterization with Trip Counts and FLOP collection enabled.

Use to...

  • Exclude modules you cannot optimize, such as third-party code.

  • Include a small number of modules of interest.

Note: In the commands below, make sure to replace the myApplication with your application executable path and name before executing a command. If your application requires additional command line options, add them after the executable name.

To implement, do one of the following before/while running the desired analysis:

  • Set Project Properties > Analysis Target > [Name] Analysis > Modules > Exclude the following module(s) and identify the modules, where [Name] is Survey or Trip Counts and FLOP.

  • Use the advisor CLI action options --module-filter-mode=exclude and --module-filter=<string>. For example:

    advisor --collect=survey --project-dir=./advi_results --module-filter-mode=exclude --module-filter=foo1.so,foo2.so -- ./myApplication
  • Set Project Properties > Analysis Target > [Name] Analysis > Modules > Include only the following module(s) and identify the modules.

  • Use the advisor CLI action options --module-filter-mode=include and --module-filter=<string>. For example:

    advisor --collect=survey --project-dir=./advi_results --module-filter-mode=include --module-filter=foo1.so,foo2.so -- ./myApplication