User Guide

Contents

Modifying Node Properties

After you add nodes to a graph and connect them with edges, inspect the nodes to ensure the data flowing through the graph has correct types. Some data types are dictated by the Threading Building Blocks (TBB) flow graph node types themselves or by the logic the graph represents. Because the data flows through nodes and edges are connected to ports, the data types are managed at the port level. The default node data types are
int
for most ports and
continue_msg
for nodes that expect this type of data.
To edit node properties:
  1. Select a node.
  2. In the
    Port Information
    pane of the
    Node
    tab, change the
    Data Type
    of a port by selecting its type and editing the field.
    change data type of a port
    For certain nodes, such as a
    join_node
    , only the input port data types can be modified, and the output data type is automatically generated when you update the input port data types.
    change port information for certain data types
  3. Select a node on the canvas to see its properties in the
    Node
    tab. This property pane displays all properties for a given node type. The properties that are not set for the selected node type are shown in a darker color. In the figure below, you can see that the
    Description
    property is not set for the
    join_node
    .
    node properties tab
    Some of the properties for the nodes are set automatically and tied to the node type. Such properties are not available for editing and the
    Node Properties
    tab enforces these rules. For example, you cannot change the
    Node Type
    , but you can edit the
    Node Weight
    and the
    Node Name
    .
    • The
      Node Weight
      is a placeholder that indicates the computational complexity of a node. The larger the number, the more computationally intensive the node is with respect to the other nodes in the graph. This number is also used by the C++ code generator to create a busy loop in the empty body that is created for each node. See the Generating C++ Stubs section for more details.
    • The
      Node Name
      is a unique name automatically assigned to each new node. You can change it to something meaningful. This name is a variable name of the object generated for the node by the C++ code generator.

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