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 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 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), 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, default (zeroed) edge data is assumed. It must be:

See also

cuGraphAddDependencies_v2