Defining the TBBROOT Environment Variable

With Intel Advisor samples, to build the Intel TBB project sample (_tbb), you need to define the TBBROOT environment variable.

To define this environment variable:

  1. Open a command line window.
  2. Use a export command to set the TBBROOT environment variable. For example, if you used the default path during installation, the files were installed below /opt/intel, type: export TBBROOT=/opt/intel/path/tbb.
  3. To always set this variable on the current system, add this definition to your .login or similar shell initialization file.
  4. Open the control panel and access: Control Panel > System > Advanced tab or system settings> Environment variables
  5. Locate any existing definition of the TBBROOT user or system environment variable. If present, verify that it value is correct if you encountered build errors and either click Cancel or OK as needed to exit the dialog box.
  6. If it is not present, under System variables or User variables, click New.
  7. Specify the Variable name as: TBBROOT.
  8. Specify the Variable value. Specify the path of the installed Intel® Parallel Studio XE files, including the \tbb directory. If you used the default path during installation, files are installed below: C:\Program Files (x86)\Intel\ or C:\Program Files\Intel\, such as C:\Program Files (x86)\Intel\Composer xxx\tbb.
  9. Click OK several times.
  10. For the change to take effect, close and reopen Visual Studio (if using Visual Studio), or close and reopen your command window (if not using Visual Studio). In some cases, you may need to log off and log on for this change to take effect.
  11. If needed, you can test the definition by opening a command window and typing set TBBROOT.

You have defined the TBBROOT environment variable.

For more complete information about compiler optimizations, see our Optimization Notice.