cuda.bindings._v2.driver.graph_add_dependencies_v2#
- cuda.bindings._v2.driver.graph_add_dependencies_v2(intptr_t h_graph, from_, to, edge_data)#
Adds dependency edges to a graph.
The number of dependencies to be added is defined by
len(from_)Elements infrom_andtoat corresponding indices define a dependency. Each node infrom_andtomust belong toh_graph. Iflen(from_)is 0, elements infrom_andtowill be ignored. Specifying an existing dependency will return an error.- Parameters:
h_graph (intptr_t) – Graph to which dependencies are added.
from (object) –
Array of nodes that provide the dependencies. It must be:
a Python sequence of
ints (as pointer addresses), orNonefor NULL.
to (object) –
Array of dependent nodes. It must be:
a Python sequence of
ints (as pointer addresses), orNonefor NULL.
edge_data (GraphEdgeData) –
Optional array of edge data. If NULL, default (zeroed) edge data is assumed. It must be:
a
GraphEdgeData, orNonefor NULL.
See also
cuGraphAddDependencies_v2