hipGraphNodeGetDependencies

Function hipGraphNodeGetDependencies 

Source
pub unsafe extern "C" fn hipGraphNodeGetDependencies(
    node: hipGraphNode_t,
    pDependencies: *mut hipGraphNode_t,
    pNumDependencies: *mut usize,
) -> hipError_t
Expand description

@brief Returns a node’s dependencies.

@param [in] node - Graph node to get the dependencies from. @param [out] pDependencies - Pointer to return the dependencies. @param [out] pNumDependencies - Returns the number of graph node dependencies. @returns #hipSuccess, #hipErrorInvalidValue

pDependencies may be NULL, in which case this function will return the number of dependencies in pNumDependencies. Otherwise, pNumDependencies entries will be filled in. If pNumDependencies is higher than the actual number of dependencies, the remaining entries in pDependencies will be set to NULL, and the number of nodes actually obtained will be returned in pNumDependencies.