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's root nodes. root_nodes may be NULL, in which case this function will return the number of root nodes in num_root_nodes. Otherwise, num_root_nodes entries will be filled in. If num_root_nodes is higher than the actual number of root nodes, the remaining entries in root_nodes will be set to NULL, and the number of nodes actually obtained will be returned in num_root_nodes.

Parameters:

h_graph (intptr_t) – Graph to query.

Returns:

Pointer to return the root nodes.

Return type:

intptr_t

See also

cuGraphGetRootNodes