Function cuGraphRemoveDependencies_v2

Source
pub unsafe extern "C" fn cuGraphRemoveDependencies_v2(
    hGraph: CUgraph,
    from: *const CUgraphNode,
    to: *const CUgraphNode,
    edgeData: *const CUgraphEdgeData,
    numDependencies: usize,
) -> CUresult
Expand description

\brief Removes dependency edges from a graph (12.3+)

The number of \p dependencies to be removed is defined by \p numDependencies. Elements in \p from and \p to at corresponding indices define a dependency. Each node in \p from and \p to must belong to \p hGraph.

If \p numDependencies is 0, elements in \p from and \p to will be ignored. Specifying an edge that does not exist in the graph, with data matching \p edgeData, results in an error. \p edgeData 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.

\param hGraph - Graph from which to remove dependencies \param from - Array of nodes that provide the dependencies \param to - Array of dependent nodes \param edgeData - Optional array of edge data. If NULL, edge data is assumed to be default (zeroed). \param numDependencies - Number of dependencies to be removed

\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE \note_graph_thread_safety \notefnerr

\sa ::cuGraphAddDependencies, ::cuGraphGetEdges, ::cuGraphNodeGetDependencies, ::cuGraphNodeGetDependentNodes