Defining the TBBROOT Environment Variable
- Open a command line window.
- Use theexportcommand to set theTBBROOTenvironment variable, type:export TBBROOT=. If you used the default path during installation, the<tbb_install_dir><tbb_install_dir>is inside:
For example, if you installed the Threading Building Blocks as a part of Intel® oneAPI Base Toolkit, the<tbb_install_dir>may be/opt/intel/inteloneapi/tbb/<version>. If you installed the Threading Building Blocks as a part ofIntel® Parallel Studio XE, the<tbb_install_dir>may be/opt/intel/compilers_and_libraries/linux/tbb.
- For root users:/opt/intel/
- For non-root users:$HOME/intel/
- To always set this variable on the current system, add this definition to your.loginor similar shell initialization file.
- Open the control panel and access:.
- Locate any existing definition of theTBBROOTuser or system environment variable. If present, verify that it value is correct if you encountered build errors and either clickCancelorOKas needed to exit the dialog box.
- If it is not present, underSystem variablesorUser variables, clickNew.
- Specify theVariable nameas:TBBROOT.
- Specify theVariable valueas the path of the installedIntel® Parallel Studio XEorIntel® oneAPI Base Toolkitfiles, including the\tbbdirectory.
- If you installed the product as part of aIntel® Parallel Studio XEinstallation and used the default path, files are installed below:C:\Program Files (x86)\IntelSWTools\orC:\Program Files\IntelSWTools\, for example:C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\tbb.
- If you installed the product as part of aIntel® oneAPI Base Toolkitinstallation and used the default path, files are installed below:, for exampleC:\Program Files (x86)\inteloneapi\C:\Program Files (x86)\inteloneapi\tbb\.<version>
- ClickOKseveral times.
- For the change to take effect:
In some cases, you may need to log off and log on for this change to take effect.
- If using Microsoft Visual Studio*: close and reopen Visual Studio.
- If using command window: close and reopen your command window.
- If needed, you can test the definition by opening a command window and typingset TBBROOT.