cuda.bindings._v2.driver.graph_node_get_dependent_nodes_v2#
- cuda.bindings._v2.driver.graph_node_get_dependent_nodes_v2(intptr_t h_node) tuple#
Returns a node’s dependent nodes.
Returns a list of
node'sdependent nodes.dependent_nodesmay be NULL, in which case this function will return the number of dependent nodes innum_dependent_nodes. Otherwise,num_dependent_nodesentries will be filled in. Ifnum_dependent_nodesis higher than the actual number of dependent nodes, the remaining entries independent_nodeswill be set to NULL, and the number of nodes actually obtained will be returned innum_dependent_nodes. Note that if an edge has non-zero (non-default) edge data andedge_datais NULL, this API will returnCUDA_ERROR_LOSSY_QUERY. Ifedge_datais non- NULL, thendependent_nodesmust be as well.- Parameters:
h_node (intptr_t) – Node to query.
- Returns:
intptr_t: Pointer to return the dependent nodes.
- CUgraphEdgeData: Optional pointer to return edge data for
dependent nodes.
- Return type:
A 2-tuple containing
See also
cuGraphNodeGetDependentNodes_v2