Set Up Environment Variables
- RunIntel Advisorcommand line interface
- RunIntel Advisorgraphical user interface from command line (for example, on Linux OS)
- Compile your application withusing additional include directories, so the compiler can find the include file that defines annotationsIntel Advisorannotations
- Recommended: Set up variables using a script.
- Set up variables manually. Use this method to set up variables for a customIntel Advisorlocation or to set the variables permanently.
Default Installation Paths
- OnLinux* OS:
- /opt/intel/oneapifor root users
- $HOME/intel/oneapifor non-root users
- OnWindows* OS:C:\Program Files (x86)\Intel\oneAPIFor 32-bit systems, theProgram Files (x86)folder isProgram Files.
Set Up Environment Variables via Script
Set Up Environment Variables Manually
- Open a terminal.
- Check the current definition of the environment variable. For example, with thebashshell, type:env | grep ADVISOR_<version-year>_DIRwhere<version-year> is a majorIntel Advisorversion installed on your system. For example, 2021.
- Set the environment variable using theexportcommand. Enter: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"
- To set this variable permanently on the current system, add this definition to your.loginor a similar shell initialization file.
- Check the definition of the environment variable set:env | grep ADVISOR_<version-year>_DIRYou should see the environment variable with its value printed to the terminal.
- Open a command prompt.
- Check the current definition of the environment variable. For example, type:set ADVISOR_<version-year>_DIRwhere<version-year> is a majorIntel Advisorversion installed on your system. For example, 2021.
- Use asetcommand to set the environment variable. Type: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"
- To set this variable permanently on the current system, add this definition to your system or user environment variables using.
- To determine whether evaluation features have been activated, set theADVISOR_EXPERIMENTALenvironment variable.
- To locate theIntel® oneAPI Threading Building Blocks (oneTBB)include directory when working with programs that useoneTBB, set theTBBROOTenvironment variable. See Defining the TBBROOT Environment Variable.
- On Linux OS and macOS:set theBROWSERenvironment variable to locate an installed HTML browser. This enables the display of Get Started, Tutorials or Help from theIntel® AdvisorGUIHelpmenu.
- On Linux OS and macOS:set theVISUALorEDITORenvironment variable to specify an external editor to launch when you double-click a line in aSourcewindow.VISUALtakes precedence overEDITOR.