Tutorials and Samples

Intel® VTune™ Amplifier offers several tools you can use as you learn, including:

About Tutorials

VTune Amplifier XE provides several tutorials that use sample code to explain how to:

  • Identify where your application is spending time, detect the most time-consuming program units and how they were called.

  • Identify locks and waits preventing parallelization.

  • Identify hardware-related issues in your application such as data sharing, cache misses, branch misprediction, and others.

VTune Amplifier for Systems provides tutorials that provide hands-on instructions how to:

  • Configure and run the Advanced Hotspots analysis on a remote embedded Linux system and view the collected data on the Linux* or Windows* host.

  • Configure and run the Basic Hotspots analysis on a remote Android* system and view the collected data on the Linux or Windows host.

You can access the tutorials from:

  • Windows* Start menu - Choose Start > Intel Studio version > Tutorials > Intel VTune Amplifier version Tutorials

  • Documentation Index - Choose Start > Intel Studio version > Documentation > Intel VTune Amplifier version Documentation or at <install_dir>\documentation\<locale>\documentation_amplifier.htm in the Intel VTune Amplifier installation folder.

    Note

    The default installation path for the VTune Amplifier XE is [Program Files]\Intel\VTune Amplifier XE 2013. For the VTune Amplifier for Systems, the installation path is [Program Files]\Intel\System Studio <version>.<package_num>\VTune Amplifier <version> for Systems.

  • Getting Started page, Resources section, available from:

    • (VTune Amplifier XE only) Visual Studio* 2010/2012/2013 Help menu - Choose Help > Intel VTune Amplifier version > Getting Started with Intel VTune Amplifier version

    • Standalone VTune Amplifier interface Help menu - Choose Help > Getting Started with Intel VTune Amplifier version

    • Help toolbar button

About Sample Applications

VTune Amplifier ships with the following code samples:

Sample Application

Summary

Location

tachyon_find_hotspots

Displays a rendering of a graphical image via 2D ray tracing.

Demonstrates: Identifying hotspot functions and code lines in a C++ application.

Performance issues: wrong algorithm choice, ineffective parallelization.

Companion tutorial: Finding Hotspots (VTune Amplifier XE, VTune Amplifier for Systems)

<install_dir>\samples\<locale>\C++\tachyon_vtune_amp_xe.zip

tachyon_analyze_locks

Displays a rendering of a graphical image via 2D ray tracing.

Demonstrates: Identifying locks preventing efficient parallelism in a C++ application.

Performance issues: locks and waits.

Companion tutorial: Analyzing Locks and Waits(VTune Amplifier XE)

install_dir>\samples\<locale>\C++\tachyon_vtune_amp_xe.zip

matrix

Calculates matrix transformations.

Demonstrates: Identifying general hardware issues in a C++ application on the host system and on the Intel® Xeon Phi™ coprocessor (code name: Knights Corner).

Performance issues: poor CPI rate, cache misses, retire stalls, execution stalls, and others.

Companion tutorials: Identifying Hardware Issues and Finding Hotspots on the Intel Xeon Phi Coprocessor (VTune Amplifier XE)

install_dir>\samples\<locale>\C++\matrix_vtune_amp_xe.zip

nqueens_parallel

Solves the nqueens problem for various board sizes.

Demonstrates: Identifying general hardware issues in a Fortran application.

Performance issues: thread contention, ineffective parallelization.

Companion tutorial: Finding Hotspots (VTune Amplifier XE)

Intel® 64 architecture: install_dir>\samples\<locale>\Fortran\nqueens_parallel.zip

jitprofiling

Demonstrates: Using the JIT profiling API.

install_dir>\samples\<locale>\C++\jitprofiling_vtune_amp_xe.zip

serial_nqueens_csharp

parallel_nqueens_csharp

Computes the number of solutions to the nQueens problem for a given board size.

Demonstrates: Identifying hotspots in a Microsoft Visual C#* application.

install_dir>\samples\<locale>\C#\serial_nqueens_csharp.zip

To install and set up the VTune Amplifier sample code:

  1. Copy the .zip file from the installation directory to a writable directory or share on your system.

  2. Extract the sample from the archive.

Note

  • Samples are non-deterministic. Your screens may vary from the screen shots shown throughout these tutorials.

  • Samples are designed only to illustrate the VTune Amplifier features and do not represent best practices for tuning any particular code. Results may vary depending on the nature of the analysis and the code to which it is applied.

Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione