Intel® Advisor Help
Intel® Advisor installs multiple sample programs that you can use as you learn. The default installation location on a Linux* OS system is:
Each directory contains subdirectories for each language, such as:
<advisor_install_dir>/C++ for C++ samples on a Linux OS
<advisor_install_dir>/Fortran for Fortran samples on a Linux OS
Each subdirectory contains compressed (tgz) files for each sample. 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 OS systems, this subdirectory contains a makefile.
The parallel versions of some C/C++ samples require support for the parallel framework used (provided with most Intel® Parallel Studio XE editions). Fortran samples require the Intel® Fortran Compiler (provided with most Intel® Parallel Studio XE editions).
The samples use the following naming conventions:
There is a makefile to build the program.
The project names start with the name of the sample and have the following suffixes.
Form of the Sample Program |
Suffix Used |
Example |
---|---|---|
Original serial program |
_serial |
stats_serial |
Serial program with parallel site and task annotations. Lock annotations and restructuring advice appears as comment lines. |
_annotated
|
stats_annotated |
Parallel version using the Intel® Threading Building Blocks parallel framework. You can use Intel TBB 3.0 or later for this project. To use this project, do one of the following:
|
_tbb |
stats_tbb |
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 the Intel Cilk Plus keywords (see the help topic About Intel Cilk Plus). |
_cilk
|
stats_cilk |
Parallel version using OpenMP* parallel framework for C/C++ and Fortran. |
_omp |
stats_omp |
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 getting started Tutorial. For example, the serial sample for use by the Survey tool is named 1_nqueens_serial for which you need to uncomment annotations.
The following sections describe the sample programs, including sample program characteristics, and how to copy and launch the samples.