Get Started Guide

  • 2022.0
  • 12/06/2021
  • Public Content

Before You Begin

Download and install
Intel® Advisor
:

Default Installation Paths

By default, the
<install-dir>
for all oneAPI components is as follows:
On Windows* OS:
C:\Program Files (x86)\Intel\oneAPI\
(on certain systems, instead of
Program Files (x86)
, the directory name is
Program Files
)
On Linux* OS:
  • /opt/intel/oneapi/
    for root users
  • $HOME/intel/oneapi/
    for non-root users
On macOS*:
/opt/intel/oneapi/

Set Up Environment

Set up the env variable if you plan to use
Intel Advisor
command line interface (
advisor
) or launch the GUI (
advisor-gui
) from the command line.
On Windows* OS:
To set up the environment for
Intel Advisor
, run the
<install-dir>\setvars.bat
script.
On Linux* OS:
To set up the environment for
Intel Advisor
, run the
source <install-dir>/setvars.sh
script.
On macOS*:
To set up the environment for
Intel Advisor
, run one of the following commands:
  • <install-dir>/setvars.sh
  • <install-dir>/setvars.csh
Explore a step-by step instruction how to view your
Intel Advisor
results on a macOS* machine in the Intel Advisor Cookbook: Analyze Performance Remotely and Visualize Results on a Local macOS* System.

Launch
Intel® Advisor

Intel Advisor
graphical user interface (GUI)
On Windows OS:
  • Run the
    Intel Advisor
    from the
    Start
    menu.
  • Run the
    advisor-gui
    command from the command prompt.
On Linux OS: Run the
advisor-gui
command from the terminal.
Intel Advisor
command line interface (CLI)
Run the
advisor
command with appropriate actions and action options from the terminal.
Intel Advisor
integrated into Microsoft Visual Studio* IDE (Windows OS only)
  1. Open your solution in the Microsoft Visual Studio.
  2. Click the icon on the toolbar or go to
    Tools >
    Intel Advisor
    > Open Perspective Selector
    .

Create a Project

Create a Project
A
project
is a reusable container that includes target executable location, sources, and binaries, collection properties, and collection results.
Prerequisite
: Before creating a project, build your application in release mode. For more information on building applications, see Build Target Application.
To create a project in the standalone GUI:
  1. Choose
    File > New > Project…
    to open the
    Create a Project
    dialog box.
  2. Specify a name and location for your project.
  3. Click the
    Create Project
    button to open the
    Project Properties
    dialog box.
  4. In the
    Analysis Target
    tab, click
    Browse
    near the
    Application
    field and select the application executable file.
  5. Optional: In the
    Binary/Symbol Search
    and
    Source Search
    tabs, specify search directories.
  6. Click
    OK
    to create the project.
If you work in the Microsoft Visual Studio*, a project is created automatically for the built application when you open the
Intel® Advisor
.
If you work with the
advisor
command line interface, a project is created automatically when you run the first analysis for the specified application.

Product and Performance Information

1

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