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
tachyon sample application:
- VTune Amplifier, including sample applications
zipfile extraction utility
- Supported compiler (see Release Notes for more information)
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/.
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 and Set Up VTune Amplifier Sample Applications
- Copy the
tachyon_vtune_amp_xe.zipfile 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\Intel\VTune Amplifier XE 2015\(on certain systems, instead of
Program Files, the directory name is
Program Files (x86)).
- Extract the sample from the
- 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.
The steps below are provided for Microsoft Visual Studio* 2012. Steps for other versions of Visual Studio IDE may differ slightly.
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.
In the Symbol file (.pdb) locations field, make sure the Microsoft Symbol Servers location is selected. Otherwise, click the Add button, specify the following address: http://msdl.microsoft.com/download/symbols, and make sure the added address is selected.
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.
Build the Target in the Release Mode
Build the target in the Release mode with full optimizations, which is recommended for performance analysis.
The build configuration for
tachyon may initially be set to Debug, which is typically used for development. When analyzing performance issues with the VTune Amplifier, you are recommended to use the Release build with normal optimizations. In this way, the VTune Amplifier is able to analyze the realistic performance of your application.
Create a Performance Baseline
Before you start the application, minimize the amount of other software running on your computer to get more accurate results.
Note the execution time displayed in the window caption. For the
analyze_locksexecutable in the figure above, the execution time is 16.848 seconds. The total execution time is the baseline against which you will compare subsequent runs of the application.
Run the application several times, note the execution time for each run, and use the average number. This helps to minimize skewed results due to transient system activity.