cubecl_hip_sys

Function hipGraphGetNodes

Source
pub unsafe extern "C" fn hipGraphGetNodes(
    graph: hipGraph_t,
    nodes: *mut hipGraphNode_t,
    numNodes: *mut usize,
) -> hipError_t
Expand description

@brief Returns graph nodes.

@param [in] graph - instance of graph to get the nodes. @param [out] nodes - pointer to return the graph nodes. @param [out] numNodes - returns number of graph nodes. @returns #hipSuccess, #hipErrorInvalidValue

nodes may be NULL, in which case this function will return the number of nodes in numNodes. Otherwise, numNodes entries will be filled in. If numNodes 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 numNodes. @warning : This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.