cuda.bindings._v2.driver.graph_clone#
- cuda.bindings._v2.driver.graph_clone(intptr_t original_graph) intptr_t#
Clones a graph.
This function creates a copy of
original_graphand returns it inph_graph_clone. All parameters are copied into the cloned graph. The original graph may be modified after this call without affecting the clone. Child graph nodes in the original graph are recursively copied into the clone.- Parameters:
original_graph (intptr_t) – Graph to clone.
- Returns:
Returns newly created cloned graph.
- Return type:
intptr_t
Note
: Cloning is not supported for graphs which contain memory allocation nodes, memory free nodes, or conditional nodes.
See also
cuGraphClone