• 12/16/2019
  • Public Content

Building the Intel® Threading Building Blocks Version

To build the Intel® Threading Building Blocks (Intel® TBB) version, you will modify the sample application to use Intel® TBB and then compile the modified code. You will then run the application and then compare the time with the baseline performance time.
  1. Remove all of the files that were created when you build the serial version by running the following command:
    %make clean
  2. Open the source file
    in your favorite code editor.
  3. Remove the comment marks for the Intel® TBB headers to declare the Intel® TBB functions that will be used in the sample application.
    #include "tbb/tbb.h"
  4. Remove comment marks to the
    function related to Intel® TBB implementation
    • The Intel® TBB
      function. This function is where the parallelization call happens. The first two arguments in this function define the iteration space the loop executes along from
      . The third parameter is a C++11 lambda expression that lets the compiler do the tedious work of creating a function object.
  5. Add comment marks to the
    serial parallel_thread()
    function since the Intel® TBB version of
    replaces this function.
  6. Build the sample by running the following command:
    %make tbb
The makefile automatically runs the sample after it is built.
Compare the time to render the image to the baseline performance time.

Product and Performance Information


Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804