cuda.bindings._v2.driver.graph_node_get_dependencies#

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

graph_node_get_dependencies_v2(intptr_t h_node) -> tuple

Returns a node’s dependencies.

Returns a list of node's dependencies. dependencies may be NULL, in which case this function will return the number of dependencies in num_dependencies. Otherwise, num_dependencies entries will be filled in. If num_dependencies is higher than the actual number of dependencies, the remaining entries in dependencies will be set to NULL, and the number of nodes actually obtained will be returned in num_dependencies. 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 dependencies must be as well.

Parameters:

h_node (intptr_t) – Node to query.

Returns:

  • intptr_t: Pointer to return the dependencies.

  • CUgraphEdgeData: Optional array to return edge data for each

    dependency.

Return type:

A 2-tuple containing

See also

cuGraphNodeGetDependencies_v2