Intel® Advisor Help
Use this topic to get guidance on setting up environment variables for Intel® Advisor.
In the instructions below, be sure to replace any values in brackets, such as <version> or <install-dir>. <version> is the Advisor year and update version (for example, 2021.1).The default installation path for the application, <install-dir>, can be found inside the following:
On Linux* OS:
/opt/intel/oneapi/advisor/<version> for root users
$HOME/intel/oneapi/advisor/<version> for non-root users
On Windows* OS: C:\Program Files (x86)\Intel\oneAPI\advisor\<version>
For 32-bit systems, the Program Files (x86) folder is Program Files.
On Windows OS
Run the following batch script:
<install-dir>/setvars.bat
source <install-dir>/advisor/<version>/env/vars.bat
where <version> is an Intel Advisor version you want to use.
On Linux OS and macOS
Run one of the following shell scripts:
source <install-dir>/setvars.sh
source <install-dir>/setvars.csh
source <install-dir>/advisor/<version>/env/vars.sh
source <install-dir>/advisor/<version>/env/vars.csh
where <version> is an Intel Advisor version you want to use.
Use this way to set the ADVISOR_<version>_DIR environment variable that you can use to specify additional include directories when compiling, so the compiler can find the Intel® Advisor include file that defines annotations.
On Windows OS
set ADVISOR_<version>_DIR
set ADVISOR_<version>_DIR="<install-dir>"
For example, for the Intel Advisor 2021:
set ADVISOR_2021_DIR="C:\Program Files (x86)\Intel\oneAPI\advisor\latest"
On Linux OS and macOS
env | grep ADVISOR_<version>_DIR
For example, for the Intel Advisor 2021:
export ADVISOR_2021_DIR="/opt/intel/oneapi/advisor/latest"
Consider setting the following environment variables in addition to ADVISOR_<version>_DIR: