Function cuGraphNodeGetDependencies_v2

Source
pub unsafe extern "C" fn cuGraphNodeGetDependencies_v2(
    hNode: CUgraphNode,
    dependencies: *mut CUgraphNode,
    edgeData: *mut CUgraphEdgeData,
    numDependencies: *mut usize,
) -> CUresult
Expand description

\brief Returns a node’s dependencies (12.3+)

Returns a list of \p node’s dependencies. \p dependencies may be NULL, in which case this function will return the number of dependencies in \p numDependencies. Otherwise, \p numDependencies entries will be filled in. If \p numDependencies is higher than the actual number of dependencies, the remaining entries in \p dependencies will be set to NULL, and the number of nodes actually obtained will be returned in \p numDependencies.

Note that if an edge has non-zero (non-default) edge data and \p edgeData is NULL, this API will return ::CUDA_ERROR_LOSSY_QUERY. If \p edgeData is non-NULL, then \p dependencies must be as well.

\param hNode - Node to query \param dependencies - Pointer to return the dependencies \param edgeData - Optional array to return edge data for each dependency \param numDependencies - See description

\return ::CUDA_SUCCESS, ::CUDA_ERROR_LOSSY_QUERY, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_VALUE \note_graph_thread_safety \notefnerr

\sa ::cuGraphNodeGetDependentNodes, ::cuGraphGetNodes, ::cuGraphGetRootNodes, ::cuGraphGetEdges, ::cuGraphAddDependencies, ::cuGraphRemoveDependencies