Function rcudnn::cudaGraphAddChildGraphNode[][src]

pub unsafe extern "C" fn cudaGraphAddChildGraphNode(
    pGraphNode: *mut *mut CUgraphNode_st,
    graph: *mut CUgraph_st,
    pDependencies: *const *mut CUgraphNode_st,
    numDependencies: usize,
    childGraph: *mut CUgraph_st
) -> cudaError
Expand description

\brief Creates a child graph node and adds it to a graph

Creates a new node which executes an embedded graph, and adds it to \p graph with \p numDependencies dependencies specified via \p pDependencies. It is possible for \p numDependencies to be 0, in which case the node will be placed at the root of the graph. \p pDependencies may not have any duplicate entries. A handle to the new node will be returned in \p pGraphNode.

If \p hGraph contains allocation or free nodes, this call will return an error.

The node executes an embedded child graph. The child graph is cloned in this call.

\param pGraphNode - Returns newly created node \param graph - Graph to which to add the node \param pDependencies - Dependencies of the node \param numDependencies - Number of dependencies \param childGraph - The graph to clone into this node

\return ::cudaSuccess, ::cudaErrorInvalidValue \note_graph_thread_safety \notefnerr \note_init_rt \note_callback

\sa ::cudaGraphChildGraphNodeGetGraph, ::cudaGraphCreate, ::cudaGraphDestroyNode, ::cudaGraphAddEmptyNode, ::cudaGraphAddKernelNode, ::cudaGraphAddHostNode, ::cudaGraphAddMemcpyNode, ::cudaGraphAddMemsetNode, ::cudaGraphClone