Skip to main content

cuGraphChildGraphNodeGetGraph

Function cuGraphChildGraphNodeGetGraph 

Source
pub unsafe extern "C" fn cuGraphChildGraphNodeGetGraph(
    hNode: CUgraphNode,
    phGraph: *mut CUgraph,
) -> CUresult
Expand description

Gets a handle to the embedded graph of a child graph node.

Gets a handle to the embedded graph in a child graph node. This call does not clone the graph. Changes to the graph will be reflected in the node, and the node retains ownership of the graph.

Allocation and free nodes cannot be added to the returned graph. Attempting to do so will return an error.

Note: Graph objects are not threadsafe. More here.

Note that this function may also return error codes from previous, asynchronous launches.

§Parameters

  • hNode: Node to get the embedded graph for.
  • phGraph: Location to store a handle to the graph.

§Return value

See also: cuGraphAddChildGraphNode, cuGraphNodeFindInClone.