• 2021.1
  • 12/04/2020
  • Public Content

Standalone GUI:
Prepare the Sample Application

This topic is part of a
that shows how to use the automated
chart to make prioritized optimization decisions.
Follow these initial steps
if you prefer
to use the
Intel Advisor
standalone GUI to try out the plots floating-point performance training sample application.

Get Software Tools and Unpack the Sample Application

You need the following tools:
  • Intel Advisor
    installation package and license
  • Version 15.x or higher of the
    Intel® C++ Compiler Classic
    or a supported compiler
    Use an Intel compiler to get more benefit (and version 17.x or higher to get the most benefit) from the
    Vectorization Advisor
    Survey Report
    . See the
    Release Notes
    for more information on supported compilers.
  • .zip
    file extraction utility
If you do not already have the
Intel Advisor
or the
Intel® C++ Compiler Classic
, download it from https://software.intel.com/content/www/us/en/develop/tools.html.
To set up the
sample application:
  1. Download both the sample code and sample results to a writable directory or share on your system.
  2. Extract the sample code and sample results from the

Prepare the Sample Application

To follow along with this
  1. Set up the
    Intel® C++ Compiler Classic
    environment. For example, in a command prompt, type:
    "<compiler-install-dir>\bin\compilervars.bat" intel64
    This will set the environment for the highest
    Intel® C++ Compiler Classic
    version installed. The exact path of the compiler environment may vary depending on your installation directory.
    See Specifying the Location of Compiler Components with compilervars in the
    Intel® C++ Compiler Classic
    Developer Guide and Reference
    for more information about setting the compiler environment.
  2. In the command prompt window, change directory to the
    directory in its unzipped location.
  3. Run
    , which creates a
    subdirectory and builds the sample application in release mode.
To build your own applications to produce the most accurate and complete
Vectorization Advisor
analysis results, build an optimized binary in release mode using the following settings.
To Do This
Optimal C/C++ Settings
Request full debug information (compiler and linker).
Linux* OS command line:
Windows* OS command line:
  • /ZI
  • /DEBUG
Microsoft Visual Studio* IDE:
  • C/C++
    Debug Information Format
    Program Database (/Zi)
  • Linker
    Generate Debug Info
    Yes (/DEBUG)
Request moderate optimization.
Linux* OS command line:
or higher
Windows* OS command line:
or higher
Visual Studio* IDE:
Maximum Optimization (Favor Speed) (/O2)
or higher
Produce compiler diagnostics (necessary for version 15.0 of the Intel compiler; unnecessary for version 16.0 and higher).
Linux* OS command line:
Windows* OS command line:
Visual Studio* IDE:
Diagnostics [Intel C++]
Optimization Diagnostic Level
Level 5 (/Qopt-report:5)
Enable vectorization
Linux* OS command line:
Windows* OS command line:
Enable SIMD directives
Linux command line:
Windows* OS command line:
Enable generation of multi-threaded code based on OpenMP* directives.
Linux* OS command line:
Windows* OS command line:
Visual Studio* IDE:
Language [Intel C++]
OpenMP Support
Generate Parallel Code (/Qopenmp)

Launch the
Intel Advisor

  • Setting up the Windows* OS environment is necessary only if you use the
     command to launch the
    Intel Advisor
    standalone GUI (or the
    command to run the command line interface). To set up your
    Intel Advisor
    environment, run the following:  
  • The default installation path for:
    • Intel Advisor
      depends on where you installed the product and is inside
      C:\Program Files (x86)\IntelSWTools\
      for standalone installations or
      C:\Program Files (x86)\Intel\oneAPI\
      as part of a
      Intel® oneAPI Base Toolkit
Do one of the following to launch the
Intel Advisor
  • Run the
  • From the
    menu, choose
    All Programs
    Intel oneAPI [version]
    Intel Advisor [version]

Prepare the Project

  1. Choose
    (or click
    New Project...
    in the
    page) to display a
    Create a Project
    dialog box.
  2. Type
    in the
    Project name
    field, supply a location for the sample application project, then click the 
    Create Project
     button to create a
    file and open the 
    Project Properties
     dialog box.
    Intel Advisor dialog box: Project Properties
  3. In the
    Analysis Target
    tab, ensure the
    Survey Hotspots Analysis
    type is selected.
  4. Click the
    button next to the
    field and choose the just-built
    binary file in the
  5. For the
    Survey Trip Count Analysis
    type, make sure the
    Inherit settings from Survey Hotspots Analysis Type
    checkbox is selected.
  6. Click the
    button to close the
    Project Properties
    dialog box.

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.