Intel® Advisor User Guide

ID 766448
Date 3/31/2023

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Building an Application on Linux* OS

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