Define the TBBROOT Environment Variable
With
Intel® Advisor
samples, to build the
Intel® oneAPI Threading Building Blocks (oneTBB)
project (_tbb
), you need to define the
TBBROOT
environment variable.
To define this environment variable:
On Linux* OS:
- 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 root users:/opt/intel/
- For non-root users:$HOME/intel/
For example, if you installed theIntel® oneAPI Threading Building Blocksas a part of Intel® oneAPI Base Toolkit, the<tbb-install-dir>may be/opt/intel/oneapi/tbb/<version>. - To always set this variable on the current system, add this definition to your.loginor similar shell initialization file.
On Windows* OS:
- 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® oneAPI Base Toolkitfiles, including the\tbbdirectory.If you installed the product as part of aIntel® oneAPI Base Toolkitand used the default path, files are installed below:, for exampleC:\Program Files (x86)\Intel\oneAPI\C:\Program Files (x86)\Intel\oneAPI\tbb\.<version>
- ClickOKseveral times.
- For the change to take effect:
- If using Microsoft Visual Studio*: close and reopen Visual Studio.
- If using command window: close and reopen your command window.
In some cases, you may need to log off and log on for this change to take effect. - If needed, you can test the definition by opening a command window and typingset TBBROOT.
You have defined the
TBBROOT
environment variable.