Tutorials and Samples

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

Note

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

About Tutorials

VTune Amplifier 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.

You can access the tutorials from:

  • Documentation Index at <install_dir>/documentation/<locale>/documentation_amplifier.htm in the Intel VTune Amplifier installation folder. The default installation folder is opt/intel/vtune_amplifier_xe_2013.

  • Getting Started page, Resources section, available from:

    • Help menu - Choose Help > Getting Started with Intel VTune Amplifier XE 2013

    • toolbar button

About Sample Applications

VTune Amplifier ships with the following code samples:

Sample Application

Summary

Default Installation 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

/opt/intel/vtune_amplifier_xe_2013/samples/tachyon_vtune_amp_xe.tar.gz

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

/opt/intel/vtune_amplifier_xe_2013/samples/tachyon_vtune_amp_xe.tar.gz

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

/opt/intel/vtune_amplifier_xe_2013/samples/matrix_vtune_amp_xe.tar.gz

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

/opt/intel/vtune_amplifier_xe_2013/samples/nqueens_parallel.tar.gz

jitprofiling

Demonstrates: Using the JIT profiling API.

/opt/intel/vtune_amplifier_xe_2013/samples/jitprofiling.tar.gz

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.

/opt/intel/vtune_amplifier_xe_2013/samples/jitprofiling.tar.gz

To install and set up the VTune Amplifier sample code:

  1. Copy the .tar.gz 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.


Supplemental documentation specific to a particular Intel Studio may be available at <install-dir>/<studio>/documentation/.

Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.