Intel® Advisor Help
Use this topic to get guidance on setting up environment variables for Intel® Advisor.
Set the environment variables if you want to:
You can set the variables using one of the following methods:
In the instructions below, be sure to replace any values in brackets, such as <version> or <install-dir>. <version> is the Intel Advisor year and update version (for example, 2021.1).The default installation path for the application, <install-dir>, can be one the following:
On Linux* OS:
/opt/intel/oneapi for root users
$HOME/intel/oneapi for non-root users
On Windows* OS: C:\Program Files (x86)\Intel\oneAPI
For 32-bit systems, the Program Files (x86) folder is Program Files.
This is the recommended method to set up the Intel Advisor environment variables. In particular, use it if you want to run the Offload Modeling using the dedicated Python* scripts. The script automatically sets up all the required variables pointing to the Intel Advisor installation directory.
Linux OS and macOS
Run one of the following shell scripts:
source <install-dir>/setvars.sh
source <install-dir>/setvars.csh
The scripts set up the environment for the latestIntel Advisor version installed on your system.
source <install-dir>/advisor/<version>/env/vars.sh
source <install-dir>/advisor/<version>/env/vars.csh
where <version> is the Intel Advisor version you want to use.
Windows OS
Run the following batch script:
<install-dir>\setvars.bat
The script sets up the environment for the latest Intel Advisor version installed on your system.
source <install-dir>/advisor/<version>/env/vars.sh
source <install-dir>/advisor/<version>/env/vars.csh
where <version> is the Intel Advisor version you want to use.
Linux OS and macOS
env | grep ADVISOR_<version-year>_DIR
where <version-year> is a major Intel Advisor version installed on your system. For example, 2021.
If the variable is defined and points to the correct Intel Advisor installation directory, skip the steps below and continue to launch the Intel Advisor.
export ADVISOR_<version-year>_DIR="<install-dir>"
For example, for the Intel Advisor 2022 in the default installation directory:
export ADVISOR_2022_DIR="/opt/intel/oneapi/advisor/latest"
env | grep ADVISOR_<version-year>_DIR
You should see the environment variable with its value printed to the terminal.
Windows OS
set ADVISOR_<version-year>_DIR
where <version-year> is a major Intel Advisor version installed on your system. For example, 2021.
If the variable is defined and points to the correct Intel Advisor installation directory, skip the steps below and continue to launch the Intel Advisor.
set ADVISOR_<version-year>_DIR="<install-dir>"
For example, for the Intel Advisor 2022:
set ADVISOR_2022_DIR="C:\Program Files (x86)\Intel\oneAPI\advisor\latest"
Consider setting the following environment variables:
Launch Intel Advisor from GUI or from command line interface.