Function rcudnn_sys::cudaGraphGetNodes[][src]

pub unsafe extern "C" fn cudaGraphGetNodes(
    graph: cudaGraph_t,
    nodes: *mut cudaGraphNode_t,
    numNodes: *mut usize
) -> cudaError_t
Expand description

\brief Returns a graph’s nodes

Returns a list of \p graph’s nodes. \p nodes may be NULL, in which case this function will return the number of nodes in \p numNodes. Otherwise, \p numNodes entries will be filled in. If \p numNodes is higher than the actual number of nodes, the remaining entries in \p nodes will be set to NULL, and the number of nodes actually obtained will be returned in \p numNodes.

\param graph - Graph to query \param nodes - Pointer to return the nodes \param numNodes - See description

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

\sa ::cudaGraphCreate, ::cudaGraphGetRootNodes, ::cudaGraphGetEdges, ::cudaGraphNodeGetType, ::cudaGraphNodeGetDependencies, ::cudaGraphNodeGetDependentNodes