Skip to main content

cudaGraphGetRootNodes

Function cudaGraphGetRootNodes 

Source
pub unsafe extern "C" fn cudaGraphGetRootNodes(
    graph: cudaGraph_t,
    pRootNodes: *mut cudaGraphNode_t,
    pNumRootNodes: *mut size_t,
) -> cudaError_t
Expand description

Returns a graph’s root nodes.

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

§Parameters

  • graph: Graph to query.
  • pRootNodes: Pointer to return the root nodes.
  • pNumRootNodes: See description.