By using this document, in addition to any agreements you have with Intel, you accept the terms set forth below.
Intel® Threading Building Blocks (Intel® TBB) 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 multicore processors. Use Intel Threading Building Blocks to write scalable applications that:
Step 1: Prepare the environment
Register the environment variables to locate necessary library and include files.
After successfully installing Intel® Threading Building Blocks (Intel® TBB) on your system, you need to do the following:
This section presents a basic example that uses the parallel_for template in a substring matching program. For each position in a string, the program displays the length and location of the largest matching substring elsewhere in the string.
Intel® Threading Building Blocks is compatible with the GCC* and Microsoft compilers. This section assumes that you are using the Intel® C++ Compiler. You can use the GCC or Microsoft C++ compilers interchangeably in the directions given below.
To run the application you built: