Trip Counts Analysis

Purpose and Usage | Prerequisites | Run | Data Reference

Trip Counts Analysis Purpose and Usage

Run a Trip Counts analysis to dynamically identify the number of times loops are invoked and execute (sometimes called call count/loop count and iteration count respectively) and add this data to the Survey Report. Use Trip Counts data to:

  • Detect loops with too-small trip counts and trip counts that are not a multiple of vector length.

  • Analyze parallelism granularity more deeply.

Trip Counts Analysis Prerequisites

To prepare to run a Trip Counts analysis:

  1. Perform the same preparation steps for a basic Survey Report.

  2. In the Analysis Target tab in the Project Properties dialog box, choose the Survey Trip Count Analysis type and review the parameters. (Survey Trip Counts Analysis parameters should be similar to those for the Survey Hotspots Analysis type.)

Tip

  • If you plan to run Refinement Reports, set parameters at the same time you set parameters for the Survey Hotspots Analysis and Survey Trip Count Analysis types. If possible, use the Inherit settings from Survey Hotspots Analysis Type checkbox for other Analysis Types.

  • Setting search directories in the Binary/Symbol Search tab and Source Search tabs is optional for the Vectorization Advisor.

  • Choose the optimal compiler settings. The most up-to-date settings are in Getting Started with Intel® Advisor.

Run a Trip Counts Analysis

To run a Trip Counts analysis: In the Vectorization Workflow tab, ensure the Trip Counts checkbox is selected, then click the Intel Advisor control: Run analysis button under Find Trip Counts and FLOP.

While analysis is running, you can do the following in the Workflow tab:

  • Stop analysis and data collection, and retain the already collected data: Click the button.

  • Cancel analysis and data collection, and discard the collected data: Click the button.

  • Interrupt post-collection data finalization: Click the button.

After analysis is complete, the Intel Advisor adds data to the Trip Counts column set in the Survey Report.

Tip

  • Collecting Trip Counts data may substantially increase report generation time. There are a variety of techniques available to minimize data collection, result size, and execution time. Check See Also

  • See Getting Started with Intel® Advisor for corresponding command line interface commands.

For more complete information about compiler optimizations, see our Optimization Notice.