Intel® VTune™ Amplifier

Configure and Run Analysis

After building the sample application, configure the Intel VTune Amplifier for the General Exploration analysis as follows:

  1. Create a VTune Amplifier project, which is a container for an analysis target and analysis type configuration and data collection results.

  2. Specify your target application for analysis.

  3. Select and run the General Exploration analysis to discover what parts of the application code are being most used and see what hardware resources are being used there.

Create a Project

  1. Set the EDITOR or VISUAL environment variable to associate your source files with the code editor (like emacs, vi, vim, gedit, and so on). For example:

    $ export EDITOR=gedit

  2. Execute the amplxe-vars script, located in the product installation directory, to set up the environment.

  3. Run the amplxe-gui script launching VTune Amplifier GUI.

  4. Click the menu button and select New > Project... to create a new project.

    The Create a Project dialog box opens.

  5. Specify the project name matrix that will be used as the project directory name and click the Create Project button.

    By default, the VTune Amplifier creates a project directory under the $HOME/intel/amplxe/projects directory and opens the New Amplifier Result tab with the Analysis Target sub-tab active.

Specify Analysis Target

To specify your application as analysis target, configure the Analysis Target tab:

  1. From the left pane, select the local type of the analysis system.

  2. From the right pane, select the Launch Application type of the analysis target drop-down menu.

  3. In the Application field, click the Browse button and navigate to the matrix.gcc application.

  4. Click the Choose Analysis button on the right to switch to the Analysis Type tab.

Configure and Run Analysis Type

  1. In the Analysis Type tab, select the Microarchitecture Analysis > General Exploration analysis type from the analysis tree on the left.

  2. In the configuration pane on the right, select the Collect stacks option to analyze functions call trees.

  3. Click the Start button on the right to run the analysis.

General Exploration analysis collects event and IP information over a wide net of hardware issues that might affect application performance.

VTune Amplifier launches the matrix application that calculates matrix transformations before exiting. When the application exits or after a predefined interval, depending on how the collection run was configured, collection is completed and the VTune Amplifier enters the finalization process, where data are coalesced, symbols are reconnected to their addresses, and certain data are cached to speed the display of results.

Note

To make sure the performance of the application is repeatable, go through the entire tuning process on the same system with a minimal amount of other software executing.

Key Terms

Next Step

Interpret Results