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'sdependencies.dependenciesmay be NULL, in which case this function will return the number of dependencies innum_dependencies. Otherwise,num_dependenciesentries will be filled in. Ifnum_dependenciesis higher than the actual number of dependencies, the remaining entries independencieswill be set to NULL, and the number of nodes actually obtained will be returned innum_dependencies. 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, thendependenciesmust 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