Build Application

Before you start analyzing hardware issues affecting the performance of your application, do the following:

  1. Get software tools.

  2. If you work in Visual Studio* IDE, open the project.

  3. Build application.

    If you build the code in Visual Studio*, make sure to:

Get Software Tools

You need the following tools to try tutorial steps yourself using the matrix sample application:

  • VTune Amplifier, including sample applications

  • zip file extraction utility

  • Supported compiler (see Release Notes for more information). For this tutorial, Intel® C++ compiler is used to build the application.

  • Text editor

Acquire Intel VTune Amplifier

If you do not already have access to the VTune Amplifier, you can download an evaluation copy from


This document focuses on using the VTune™ Amplifier in Intel® Parallel Studio XE Professional Edition. You may see minor differences if you installed a different Intel product. For more information on product capabilities in your installed product, see the product-specific supplemental documentation in <install-dir>/<Intel_product>/documentation/.

Install and Set Up VTune Amplifier Sample Applications

  1. Copy the file from the <install_dir>\samples\<locale>\C++\ directory to a writable directory or share on your system.


    The default installation path for the VTune Amplifier XE is [Program Files]\IntelSWTools\VTune Amplifier XE <version>. For the VTune Amplifier for Systems, the default <install_dir> is [Program Files]\IntelSWTools\system_studio_<version>\VTune Amplifier for Systems.

  2. Extract the sample from the .zip file.


  • Samples are non-deterministic. Your screens may vary from the screen captures shown throughout this tutorial.
  • Samples are designed only to illustrate the VTune Amplifier features; they do not represent best practices for creating code.

Open a Project in Visual Studio* IDE


The steps below are provided for Microsoft Visual Studio* 2013. Steps for other versions of Visual Studio IDE may differ slightly.

If you work in the Microsoft Visual Studio* IDE, open the sample project as follows:

  1. From the Visual Studio menu, select File > Open > Project/Solution....

    The Open Project dialog box opens.

  2. In the Open Project dialog box, browse to the location where you extracted the file and select the matrix.sln file.

    The solution is added to Visual Studio and shows up in the Solution Explorer. VTune Amplifier automatically inherits Visual Studio settings and uses the currently opened project as a target project for performance analysis.

When you choose a project in Visual Studio IDE, the VTune Amplifier automatically creates the config.amplxeproj project file and sets the matrix application as an analysis target in the project properties.

Configure the Microsoft* Symbol Server

Configure the Visual Studio environment to download the debug information for system libraries so that the VTune Amplifier can properly identify system functions and classify/attribute functions.

  1. Go to Tools > Options....

    The Options dialog box opens.

  2. From the left pane, select Debugging > Symbols.

  3. In the Symbol file (.pdb) locations field, click the button and specify the following address:

  4. Make sure the added address is checked.

  5. In the Cache symbols in this directory field, specify a directory where the downloaded symbol files will be stored.

  6. Click Ok.

Verify Optimal Compiler/Linker Options

Configure Visual Studio project properties to generate the debug information for your application so that the VTune Amplifier can open the source code.

  1. Select the matrix project and go to Project > Properties.

  2. From the matrix Property Pages dialog box, select Configuration Properties > General and make sure the selected Configuration (top of the dialog) is Release.

  3. From the matrix Property Pages dialog box, select C/C++ > General pane and specify the Debug Information Format as Program Database (/Zi).

  4. From the matrix Property Pages dialog box, select Linker > Debugging and set the Generate Debug Info option to Yes (/DEBUG).

  5. Click Ok.

Build the Target in the Release Mode

Build the target in the Release mode with full optimizations, which is recommended for the performance analysis.

  1. From the Visual Studio menu, select Project > Intel Compiler > Use Intel C++....

  2. Go to the Build > Configuration Manager... dialog box and select the Release mode for your target project.

  3. Click Close.

  4. From the Visual Studio menu, select Build > Build matrix.

    The matrix.exe application is built.

Key Terms


Optimization Notice

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804