cuda.bindings._v2.driver.graph_node_get_dependent_nodes#

cuda.bindings._v2.driver.graph_node_get_dependent_nodes(h_node)#

graph_node_get_dependent_nodes_v2(intptr_t h_node) -> tuple

Returns a node’s dependent nodes.

Returns a list of node's dependent nodes. dependent_nodes may be NULL, in which case this function will return the number of dependent nodes in num_dependent_nodes. Otherwise, num_dependent_nodes entries will be filled in. If num_dependent_nodes is higher than the actual number of dependent nodes, the remaining entries in dependent_nodes will be set to NULL, and the number of nodes actually obtained will be returned in num_dependent_nodes. Note that if an edge has non-zero (non-default) edge data and edge_data is NULL, this API will return CUDA_ERROR_LOSSY_QUERY. If edge_data is non- NULL, then dependent_nodes must 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