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 start the application and then compare the time with the baseline performance time.
Set the build_with_tbb project as the startup project.
For project build_with_tbb, change the compiler to the Intel® C++ Compiler (Project > Intel Compiler > Use Intel C++).
For the project build_with_tbb click Project > Properties > Intel Performance Libraries > Intel® Threading Building Blocks > Use Intel® TBB (Yes) to set the Intel® TBB environment variables. The environment variables that are set is defined in Notes section.
Open the source file tachyon.tbb.cpp in the project build_with_tbb.
Remove the comment marks for the Intel® TBB headers to declare the Intel® TBB functions that will be used in the sample application as given below.
#include <tbb/tbb.h>
Build build_with_tbb in release configuration.
The makefile automatically runs the sample after it is built.
Compare the time to render the image to the baseline performance time.