Skip to main content

cudaGraphNodeGetContainingGraph

Function cudaGraphNodeGetContainingGraph 

Source
pub unsafe extern "C" fn cudaGraphNodeGetContainingGraph(
    hNode: cudaGraphNode_t,
    phGraph: *mut cudaGraph_t,
) -> cudaError_t
Expand description

Returns the graph that contains a given graph node.

Returns the graph that contains hNode in *phGraph. If hNode is in a child graph, the child graph it is in is returned.

§Parameters

  • hNode: Node to query.
  • phGraph: Pointer to return the containing graph.

§Return value

See also: cudaGraphGetNodes, cudaGraphDebugDotPrint, cudaGraphNodeGetLocalId, cudaGraphNodeGetToolsId, cudaGraphGetId, cudaGraphExecGetId.