pub unsafe extern "C" fn hipGraphGetEdges(
graph: hipGraph_t,
from: *mut hipGraphNode_t,
to: *mut hipGraphNode_t,
numEdges: *mut usize,
) -> hipError_t
Expand description
@brief Returns a graph’s dependency edges.
@param [in] graph - instance of the graph to get the edges from. @param [out] from - pointer to the graph nodes to return edge endpoints. @param [out] to - pointer to the graph nodes to return edge endpoints. @param [out] numEdges - returns number of edges. @returns #hipSuccess, #hipErrorInvalidValue
from and to may both be NULL, in which case this function only returns the number of edges in numEdges. Otherwise, numEdges entries will be filled in. If numEdges is higher than the actual number of edges, the remaining entries in from and to will be set to NULL, and the number of edges actually returned will be written to numEdges @warning : This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.