cuda::experimental::insert_child_graph#

Overloads#

insert_child_graph(__pb, __child)#

inline graph_node_ref cuda::experimental::insert_child_graph(
path_builder &__pb,
graph_builder_ref __child
)

Adds a child graph node to a CUDA graph path.

The entire subgraph described by __child is embedded as a single node in the parent graph. All nodes in the child graph execute before any successor of the new child-graph node.

Parameters:
  • __pb – Path builder to insert the node into.

  • __child – A graph_builder_ref whose underlying graph will become the child.

Throws:

cuda::std::cuda_error – if node creation fails.

Returns:

A graph_node_ref for the newly added child-graph node.

insert_child_graph(__pb, __child)#

inline graph_node_ref cuda::experimental::insert_child_graph(
path_builder &__pb,
graph_builder &&__child
)

Adds a child graph node to a CUDA graph path, transferring ownership.

The child graph is moved into the parent graph node. After this call, the graph_builder is left in a null state and the parent graph owns the child’s lifetime.

Parameters:
  • __pb – Path builder to insert the node into.

  • __child – An rvalue graph_builder whose graph will be moved into the parent.

Throws:

cuda::std::cuda_error – if node creation fails.

Returns:

A graph_node_ref for the newly added child-graph node.