Standalone GUI: Build Application and Create New Project

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

  1. Get software tools.

  2. Build application.

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

  3. Create a VTune Amplifier project.

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). Intel® C++ compiler is recommended.

  • Text editor

Acquire Intel VTune Amplifier

If you do not already have access to the VTune Amplifier, you can download an evaluation copy from http://software.intel.com/en-us/articles/intel-software-evaluation-center/.

Note

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 matrix_vtune_amp_xe.zip file from the <install-dir>\samples\<locale>\C++\ directory to a writable directory or share on your system. The default installation path is C:\Program Files(x86)\Intel\VTune Amplifier XE 2013\ (on certain systems, instead of Program Files(x86), the directory name is Program Files).

  2. Extract the sample from the .zip file.

Note

  • 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.

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.

Note

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

  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: http://msdl.microsoft.com/download/symbols.

  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).

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. Go to the Build > Configuration Manager... dialog box and select the Release mode for your target project.

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

    The matrix.exe application is built.

Create a VTune Amplifier Project

  1. From the Start menu select Intel Parallel Studio XE 2013 > Intel VTune Amplifier XE 2013 to launch the VTune Amplifier GUI client.

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

    The Create a Project dialog box opens.

  3. 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 %USERPROFILE%\My Documents\Amplifier\Projects directory and opens the Project Properties: Target dialog box.

  4. In the Target tab, select the Application to Launch target type, browse to the matrix.exe application and click OK.

Key Terms

Target

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

Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.