cuda.bindings._v2.driver.graph_get_root_nodes#
- cuda.bindings._v2.driver.graph_get_root_nodes(intptr_t h_graph)#
Returns a graph’s root nodes.
Returns a list of
h_graph'sroot nodes.root_nodesmay be NULL, in which case this function will return the number of root nodes innum_root_nodes. Otherwise,num_root_nodesentries will be filled in. Ifnum_root_nodesis higher than the actual number of root nodes, the remaining entries inroot_nodeswill be set to NULL, and the number of nodes actually obtained will be returned innum_root_nodes.- Parameters:
h_graph (intptr_t) – Graph to query.
- Returns:
Pointer to return the root nodes.
- Return type:
intptr_t
See also
cuGraphGetRootNodes