Function rcudnn::cudaGraphGetNodes[][src]

pub unsafe extern "C" fn cudaGraphGetNodes(
    graph: *mut CUgraph_st,
    nodes: *mut *mut CUgraphNode_st,
    numNodes: *mut usize
) -> cudaError
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