User Guide

Contents

Building an Application for Trace Collection

To build an application enabled for trace collection:
  1. Define the required marco for your version of the Threading Building Blocks (TBB):
    • For TBB 2019 or higher, define the
      TBB_USE_THREADING_TOOLS
      macro and link against the
      tbb
      library. This macro activates the required instrumentations in the
      flow_graph.h
      header. The
      tbb
      library supports flow graph and algorithm profiling. All features other than
      set_name
      extensions are available as non-preview features.
    • For TBB lower than 2019, define the
      TBB_PREVIEW_FLOW_GRAPH_TRACE
      macro and link against
      tbb_preview
      or
      tbb_preview_debug
      library. This macro activates the required instrumentation in the
      flow_graph.h
      header. The
      tbb_preview
      and
      tbb_preview_debug
      libraries offer support for preview features not yet supported in the main library. The instrumentation needed by the Flow Graph Analyzer is supported as a Preview feature in TBB 4.3 and higher versions of the libraries.
  2. Compile using TBB 4.3 or higher.
Refer to the OS-specific topics for instructions on how to build an application depending on your operating system.

Product and Performance Information

1

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