pub unsafe extern "C" fn cudaGraphGetEdges_v2(
graph: cudaGraph_t,
from: *mut cudaGraphNode_t,
to: *mut cudaGraphNode_t,
edgeData: *mut cudaGraphEdgeData,
numEdges: *mut usize,
) -> cudaError_t
Expand description
\brief Returns a graph’s dependency edges (12.3+)
Returns a list of \p graph’s dependency edges. Edges are returned via corresponding indices in \p from, \p to and \p edgeData; that is, the node in \p to[i] has a dependency on the node in \p from[i] with data \p edgeData[i]. \p from and \p to may both be NULL, in which case this function only returns the number of edges in \p numEdges. Otherwise, \p numEdges entries will be filled in. If \p numEdges is higher than the actual number of edges, the remaining entries in \p from and \p to will be set to NULL, and the number of edges actually returned will be written to \p numEdges. \p edgeData may alone be NULL, in which case the edges must all have default (zeroed) edge data. Attempting a losst query via NULL \p edgeData will result in ::cudaErrorLossyQuery. If \p edgeData is non-NULL then \p from and \p to must be as well.
\param graph - Graph to get the edges from \param from - Location to return edge endpoints \param to - Location to return edge endpoints \param edgeData - Optional location to return edge data \param numEdges - See description
\return ::cudaSuccess, ::cudaErrorLossyQuery, ::cudaErrorInvalidValue \note_graph_thread_safety \notefnerr \note_init_rt \note_callback
\sa ::cudaGraphGetNodes, ::cudaGraphGetRootNodes, ::cudaGraphAddDependencies, ::cudaGraphRemoveDependencies, ::cudaGraphNodeGetDependencies, ::cudaGraphNodeGetDependentNodes