Skip to main content

cuGraphNodeFindInClone

Function cuGraphNodeFindInClone 

Source
pub unsafe extern "C" fn cuGraphNodeFindInClone(
    phNode: *mut CUgraphNode,
    hOriginalNode: CUgraphNode,
    hClonedGraph: CUgraph,
) -> CUresult
Expand description

Finds a cloned version of a node.

This function returns the node in hClonedGraph corresponding to hOriginalNode in the original graph.

hClonedGraph must have been cloned from hOriginalGraph via cuGraphClone. hOriginalNode must have been in hOriginalGraph at the time of the call to cuGraphClone, and the corresponding cloned node in hClonedGraph must not have been removed. The cloned node is then returned via phClonedNode.

Note: Graph objects are not threadsafe. More here.

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

§Parameters

  • phNode: Returns handle to the cloned node.
  • hOriginalNode: Handle to the original node.
  • hClonedGraph: Cloned graph to query.

§Return value

See also: cuGraphClone.