cuda.bindings._v2.driver.graph_add_dependencies_v2#

cuda.bindings._v2.driver.graph_add_dependencies_v2(
intptr_t h_graph,
from_,
to,
edge_data,
size_t num_dependencies,
)#

Adds dependency edges to a graph.

The number of dependencies to be added is defined by num_dependencies Elements in from and to at corresponding indices define a dependency. Each node in from and to must belong to h_graph. If num_dependencies 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 can be:

    • an int as the pointer address to the array, or

    • a Python sequence of ints (as pointer addresses).

  • to (object) –

    Array of dependent nodes. It can be:

    • an int as the pointer address to the array, or

    • a Python sequence of ints (as pointer addresses).

  • edge_data (intptr_t) – Optional array of edge data. If NULL, default (zeroed) edge data is assumed.

  • num_dependencies (size_t) – Number of dependencies to be added.

See also

cuGraphAddDependencies_v2