Training Samples

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

Overview

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)

 

Windows*

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

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

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

 

Linux*

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

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

Support

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).

Components

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:

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

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

_tbb
3_tachyon_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 Intel Cilk Plus keywords. For more information, see the online Help:

Windows | Linux.

_cilk
3_tachyon_cilk
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.

Ready to Get Started?


Информация о продукте и производительности

1

Компиляторы Intel могут не обеспечивать для процессоров других производителей уровень оптимизации, который не является присущим только процессорам Intel. В состав этих оптимизаций входят наборы команд SSE2, SSE3 и SSSE3, а также другие оптимизации. Корпорация Intel не гарантирует доступность, функциональность или эффективность работы любых приложений оптимизации для микропроцессоров других производителей. Содержащиеся в данной продукции оптимизации, предназначены для использования с конкретными микропроцессорами Intel. Некоторые оптимизации, не относящиеся к микроархитектуре Intel, зарезервированы для микропроцессоров Intel. Пожалуйста, см. соответствующее руководство пользователя или справочные руководства для получения дополнительной информации о конкретных наборах команд, к которым относится данное уведомление.

Редакция уведомления № 20110804