cuda.bindings._v2.driver.graph_add_child_graph_node#

cuda.bindings._v2.driver.graph_add_child_graph_node(
intptr_t h_graph,
dependencies,
intptr_t child_graph,
) → intptr_t#

Creates a child graph node and adds it to a graph.

Creates a new node which executes an embedded graph, and adds it to h_graph with len(dependencies) dependencies specified via dependencies. It is possible for len(dependencies) to be 0, in which case the node will be placed at the root of the graph. dependencies may not have any duplicate entries. A handle to the new node will be returned in ph_graph_node. If child_graph contains allocation nodes, free nodes, or conditional nodes, this call will return an error. The node executes an embedded child graph. The child graph is cloned in this call.

Parameters:
  • h_graph (intptr_t) – Graph to which to add the node.

  • dependencies (object) –

    Dependencies of the node. It must be:

    • a Python sequence of ints (as pointer addresses), or

    • None for NULL.

  • child_graph (intptr_t) – The graph to clone into this node.

Returns:

Returns newly created node.

Return type:

intptr_t

Note

This function will be deprecated in a future CUDA release. Please migrate to cuGraphAddNode.

See also

cuGraphAddChildGraphNode