Learn how to use Intel® Advisor with prewritten sample code projects.
Default Installation Locations
Microsoft Windows*: C:\Program Files (x86)\IntelSWTools\Advisor\samples\en
Default Subdirectory Paths (by Programming Language)
C++: C:\Program Files (x86)\IntelSWTools\Advisor\samples\en\C++
C#: C:\Program Files (x86)\IntelSWTools\Advisor\samples\en\C#
Fortran: C:\Program Files (x86)\IntelSWTools\Advisor\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||Suffix||Example|
|Original serial program||_serial||1_tachyon_serial|
|Serial program with parallel site and task annotations (lock annotations and restructuring advice appear as comment lines)||_annotated||2_tachyon_annotated|
|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:
|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||_omp||3_tachyon_omp|
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.