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 dependencies to be removed is defined by len(from_). Elements in from_ and to at corresponding indices define a dependency. Each node in from_ and to must belong to h_graph. If len(from_) is 0, elements in from_ and to will be ignored. Specifying an edge that does not exist in the graph, with data matching edge_data, results in an error. edge_data is 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), or

    • None for NULL.

  • to (object) –

    Array of dependent nodes. It must be:

    • a Python sequence of ints (as pointer addresses), or

    • None for NULL.

  • edge_data (GraphEdgeData) –

    Optional array of edge data. If NULL, edge data is assumed to be default (zeroed). It must be:

See also

cuGraphRemoveDependencies_v2