cuda.bindings._v2.driver.graph_remove_dependencies_v2#
- cuda.bindings._v2.driver.graph_remove_dependencies_v2(intptr_t h_graph, from_, to, edge_data)#
Removes dependency edges from a graph.
The number of
dependenciesto be removed is defined bylen(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 edge that does not exist in the graph, with data matchingedge_data, results in an error.edge_datais nullable, which is equivalent to passing default (zeroed) data for each edge. Dependencies cannot be removed from graphs which contain allocation or free nodes. Any attempt to do so will return an error.- Parameters:
h_graph (intptr_t) – Graph from which to remove dependencies.
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, edge data is assumed to be default (zeroed). It must be:
a
GraphEdgeData, orNonefor NULL.
See also
cuGraphRemoveDependencies_v2