Setting and Using Intel® Advisor Environment Variables

Intel® Advisor:
  • Provides the ADVISOR_201n_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. To specify the environment variable:

    • On Windows* OS define the ADVISOR_201n_DIR environment variable when you use the predefined command prompt or execute the environment script file.
    • On Linux* OS and MacOS* define the ADVISOR_201n_DIR environment variable by using an export command. For example: export ADVISOR_201n_DIR=/opt/intel/advisor_201n.
  • Tests the ADVIXE_EXPERIMENTAL environment variable to determine whether evaluation features have been activated.

  • With C++ parallel Intel Threading Building Blocks (Intel TBB) programs, the TBBROOT environment variable must be defined, so your compiler can locate the installed Intel TBB include directory. See the help topic Defining the TBBROOT Environment Variable.

  • On Linux* OS and MacOS* Intel Advisor uses the BROWSER environment variable on Linux* systems to locate an installed HTML browser. This enables the display of Getting Started Tutorials or Help from the Intel Advisor GUI Help menu.

  • On Linux* OS and MacOS*, in addition to the File > Option> Editor settings, you can use the VISUAL or EDITOR environment variable to specify the external editor to launch when you double-click a line in a Source window. (VISUAL takes precedence over EDITOR). For example, to set the VISUAL environment variable use an export command: export VISUAL="/usr/bin/vi -n"

For example, to view and set the ADVISOR_201n_DIR environment variable:

Setting Environment Variables

On Linux* OS / MacOS* Manually

  1. View the current definition of the ADVISOR_201n_DIR environment variable. For example, with the bash shell type: env | grep ADVISOR_201n_DIR.
  2. Use an export command to set the ADVISOR_201n_DIR environment variable. For example: export ADVISOR_201n_DIR="/opt/intel/advisor_201n".
  3. To always set this variable on the current system, add this definition to your .login or similar shell initialization file.
  4. To test the definition of an environment variable, type an export command.

On Linux* OS / MacOS* via Script

Run the shell script source <install-dir>/advixe-genvars.sh

where <install-dir> default values are:

  • For root users:

    /opt/intel/advisor_201n
  • For non-root users:

    $HOME/intel/advisor_201n

On Windows* OS Manually

  1. Open a command line window.
  2. View the current definition of the ADVISOR_201n_DIR environment variable. For example, type: set ADVISOR_201n_DIR.
  3. Use a set command to set the ADVISOR_201n_DIR environment variable. For example: set ADVISOR_201n_DIR="C:\Program files (x86)\IntelSWTools\Advisor 201n".
  4. To always set this variable on the current system, add this definition to your system or user environment variables using Control Panel > System > Advanced > Environment variables.

On Windows* OS via Script

Run the batch script source <install-dir>/advixe-vars.bat

where <install-dir> default values are:

  • For 64-bit systems:

    C:\Program files (x86)\IntelSWTools\Advisor 201n
  • For 32-bit systems:

    C:\Program files\IntelSWTools\Advisor 201n
For more complete information about compiler optimizations, see our Optimization Notice.