Training Samples

Learn how to use Intel® Advisor with prewritten sample code projects.


The samples are designed only to illustrate software 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.


Default Installation Locations


Intel Advisor

Windows*: C:\Program Files (x86)\IntelSWTools\Advisor

Linux*: /opt/intel/advisor/


Intel Advisor Beta

Windows: C:\Program Files (x86)\inteloneapi\advisor\<version>

Linux: /opt/intel/inteloneapi/advisor/<version>

Default Subdirectory Paths (by Programming Language)



C++: <install-dir>\samples\en\C++

C#: <install-dir>\samples\en\C#

Fortran: <install-dir>\samples\en\Fortran



C++: <install-dir>/samples/en/C++

Fortran: <install-dir>/samples/en/Fortran


Each subdirectory contains compressed files for each sample (.tgz for Linux*, .zip for Windows*). After you copy the compressed file to a writable directory, use a suitable tool to uncompress the sample files, which creates a subdirectory (for example, stats). On Linux systems, this subdirectory contains a makefile.

The parallel versions of some C and C++ samples require support for the parallel framework (provided with most editions of Intel® Parallel Studio XE). Fortran samples require the Intel® Fortran Compiler (also provided with most editions of Intel Parallel Studio XE).


The subdirectory contains the following resources for your project:

  • A makefile, which builds the program
  • Projects with filenames starting with sample and (where applicable) have the following suffixes:

Type of Sample Program
Original serial program
Serial program with parallel site and task annotations (lock annotations and restructuring advice appear as comment lines)

Parallel version that uses parallel framework in Intel® Threading Building Blocks, 3.0 or later.

To work with this project, do one of the following:

Use the Intel® C++ Compiler and its Select Build Components method.

Define the TBBROOT environment variable as described in the release notes: Windows | Linux.


Parallel version using the Intel® Cilk™ Plus parallel framework

To use this project, you must use the Intel C++ Compiler or another compiler that supports Intel Cilk Plus keywords. For more information, see the online Help:

Windows | Linux.

Parallel version using OpenMP* parallel framework for C, C++, and Fortran

Note The nqueens_Advisor, nqueens (Fortran), and the tachyon Advisor samples use a numeric digit as a prefix to the project name, as shown in the C, C++, or Fortran Intel Advisor tutorials. For example, you need to uncomment annotations for the serial sample 1_queens_serial that the Survey tool uses.

Ready to Get Started?