cuda.bindings._v2.driver.graph_get_edges_v2#
- cuda.bindings._v2.driver.graph_get_edges_v2(intptr_t h_graph) tuple#
Returns a graph’s dependency edges.
Returns a list of
h_graph'sdependency edges. Edges are returned via corresponding indices infrom,toandedge_data; that is, the node into[i] has a dependency on the node infrom[i] with dataedge_data[i].fromandtomay both be NULL, in which case this function only returns the number of edges innum_edges. Otherwise,num_edgesentries will be filled in. Ifnum_edgesis higher than the actual number of edges, the remaining entries infromandtowill be set to NULL, and the number of edges actually returned will be written tonum_edges.edge_datamay alone be NULL, in which case the edges must all have default (zeroed) edge data. Attempting a lossy query via NULLedge_datawill result inCUDA_ERROR_LOSSY_QUERY. Ifedge_datais non-NULL thenfromandtomust be as well.- Parameters:
h_graph (intptr_t) – Graph to get the edges from.
- Returns:
intptr_t: Location to return edge endpoints.
intptr_t: Location to return edge endpoints.
CUgraphEdgeData: Optional location to return edge data.
- Return type:
A 3-tuple containing
See also
cuGraphGetEdges_v2