Function cudaGraphRemoveDependencies_v2

Source
pub unsafe extern "C" fn cudaGraphRemoveDependencies_v2(
    graph: cudaGraph_t,
    from: *const cudaGraphNode_t,
    to: *const cudaGraphNode_t,
    edgeData: *const cudaGraphEdgeData,
    numDependencies: usize,
) -> cudaError_t
Expand description

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

The number of \p pDependencies to be removed is defined by \p numDependencies. Elements in \p pFrom and \p pTo at corresponding indices define a dependency. Each node in \p pFrom and \p pTo must belong to \p graph.

If \p numDependencies is 0, elements in \p pFrom and \p pTo 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.

\param graph - 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 ::cudaSuccess, ::cudaErrorInvalidValue \note_graph_thread_safety \notefnerr \note_init_rt \note_callback

\sa ::cudaGraphAddDependencies, ::cudaGraphGetEdges, ::cudaGraphNodeGetDependencies, ::cudaGraphNodeGetDependentNodes