cuda.bindings._v2.driver.graph_get_nodes#

cuda.bindings._v2.driver.graph_get_nodes(intptr_t h_graph)#

Returns a graph’s nodes.

Returns a list of h_graph's nodes. nodes may be NULL, in which case this function will return the number of nodes in num_nodes. Otherwise, num_nodes entries will be filled in. If num_nodes is higher than the actual number of nodes, the remaining entries in nodes will be set to NULL, and the number of nodes actually obtained will be returned in num_nodes.

Parameters:

h_graph (intptr_t) – Graph to query.

Returns:

Pointer to return the nodes.

Return type:

intptr_t

See also

cuGraphGetNodes