• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • Compute Graph Framework SDK Reference  5.6
    All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
    Graphlet

    A Connection represents the data flow between an output port and an input port and can be represented as an edge in a directed graph. In CGF such a graph is called a Graphlet.

    Similar to graphs which can be composed out of subgraphs, a graphlet cannot only be composed out of nodes but also out of other graphlets. To enable this kind of hierarchical composition, a graphlet has a similar interface to a node:

    • a set of ports
    • a set of parameters

    Additionally, a graphlet is described by the following information:

    • a set of subcomponents, where each Component can be either a node or a graphlet
      • parameters of the graphlet can be forwarded to one or multiple of the subcomponents
    • a set of connections between the endpoints of these subcomponents
    • a set of Wires to virtually connect the ports of the graphlet with ports of the subcomponents, which enables to keep some ports from subcomponents private and only explicitly expose ports publically

    A visualization of a node and a graphlet illustrating the concepts of ports and connections is shown in the graphical UI.

    Indirect Connections

    For scheduling the data flow in the graph represents a data dependency. A topological order, in which each nodes passes should be executed, can only be established for a directed acyclic graph. To break potential cycles within the graph some connections might be marked as indirect connections. While these do represent a data flow they don't represent a data dependency for scheduling.

    Wire Details

    A wire is different from a connection since no actual data transport is implied yet. It solely exists to export a port from a subcomponent to the public interface of the surrounding graphlet. An input port of a graphlet might be connected to one or multiple input ports of subcomponents.

    Channels

    While a connection only describes that data should flow between two endpoint, a Channel provides a specific kind of data transport mechanism (e.g. sockets, shared memory). A single channel can also provide the data transport for more than one connection, e.g. via UDP multicast. The exact type of a channel as well as optional configuration options of the specified transport mechanism are defined by parameters associated with each connection.

    Importantly, independent of the selected transport mechanism all memory is owned by the channel to provide efficient communication.

    人人超碰97caoporen国产