Get Started with Intel® oneAPI Threading Building Blocks (oneTBB)
Get Started with Intel® oneAPI Threading Building Blocks (oneTBB) Contents Chapter 1: Get Started with oneAPI Threading Building Blocks (oneTBB) Install oneTBB on Windows* OS .................................................................. 5 Install oneTBB on Linux* OS .......................................................................
Get Started with oneAPI Threading Building Blocks (oneTBB) Get Started with oneAPI Threading Building Blocks (oneTBB) 1 1 oneAPI Threading Building Blocks (oneTBB) is a runtime-based parallel programming model for C++ code that uses threads. It consists of a template-based runtime library to help you harness the latent performance of multi-core processors. oneTBB enables you to simplify parallel programming by breaking computation into parallel running tasks.
1 Get Started with Intel® oneAPI Threading Building Blocks (oneTBB) Before You Begin After installing oneTBB, you need to set the environment variables: Go to the oneTBB installation directory (). By default, is the following: 1. • On Linux* OS: • • For superusers (root): /opt/intel/oneapi • For ordinary users (non-root): $HOME/intel/oneapi On Windows* OS: • \Intel\oneAPI Set the environment variables, using the script in , by running 2.
Get Started with oneAPI Threading Building Blocks (oneTBB) 1 NOTE For Windows* OS, additionally use the --msvc-syntax option flag that converts the compiling and linking flags in an appropriate mode. Find more • • • oneTBB Community Forum Product FAQs Support requests Use these resources if you need support with oneTBB. Release Notes Find up-to-date information about the product, including detailed notes, known issues, and changes.
1 • Get Started with Intel® oneAPI Threading Building Blocks (oneTBB) Online installer has a smaller file size but requires a permanent Internet connection while running. • Offline installer has a bigger file size but requires an Internet connection only to download the installer file, and then runs offline. Having decided on the installer type, click the corresponding link to start the download. Wait for the download to complete. 3. 4. Step 2. Prepare the installer For offline installer: Run the .
Get Started with oneAPI Threading Building Blocks (oneTBB) 1. 2. 3. 1 At the Integrate IDE step, the program checks if it is possible to deploy oneTBB fully integrated with Microsoft Visual Studio IDE - for that, the supported IDE version must be installed on the target machine. If not installed, you can exit the setup and restart it after installing the IDE, or proceed without integration. At the Software Improvement Program step, select the option you prefer.
1 Get Started with Intel® oneAPI Threading Building Blocks (oneTBB) NOTE Remember to configure environment variables after installation. See the Before You Begin section to learn about it. Install with a Package Manager To install oneTBB with a package manager, run the corresponding command described in the documentation: • • • Conda Pip NuGet NOTE Remember to configure environment variables after installation. See Before You Begin section to learn about it.
Get Started with oneAPI Threading Building Blocks (oneTBB) • 1 user: sudo sh ./l_[Toolkit Name]Kit_[version].sh -a --silent --eula accept --components intel.oneapi.lin.tbb.devel Where: • • --silent - Run the installer in non-interactive (silent) mode. --eula - Accept or decline End User License Agreement (EULA), supported values: accept or decline (default). • --components – Let you custom installed components. For example: sudo sh ./l_BaseToolKit_2021.1.
1 Get Started with Intel® oneAPI Threading Building Blocks (oneTBB) To install oneTBB using PIP*, run: pip install -c intel tbb== For example: pip install -c intel tbb==2021.5 NuGet To install oneTBB from NuGet* using the command line, do the following: 1. 2. Go to nuget.org Run: nuget install inteltbb.devel.linux NOTE See Intel(R) oneAPI Installation Guide to learn how to configure NuGet*. NOTE Remember to configure environment variables after installation.