Intel® Advisor Help
Use the following command line to build an executable for the running example:
icpc -std=c++11 -DTBB_USE_THREADING_TOOLS example.cpp -ltbb
These command lines define the TBB_USE_THREADING_TOOLS macro and also link the application against the tbb.lib library. -std=c++11 is present because the running example uses lambda expressions, which are a C++11 feature.
To map nodes to source code, use -g, -DTBB_PREVIEW_FLOW_GRAPH_TRACE, and -DTBB_USE_THREADING_TOOLS flags when building the application:
icpc -g -std=c++11 -DTBB_USE_THREADING_TOOLS -DTBB_PREVIEW_FLOW_GRAPH_TRACE example.cpp -ltbb_preview