Function cudaGraphNodeGetDependencies_v2

Source
pub unsafe extern "C" fn cudaGraphNodeGetDependencies_v2(
    node: cudaGraphNode_t,
    pDependencies: *mut cudaGraphNode_t,
    edgeData: *mut cudaGraphEdgeData,
    pNumDependencies: *mut usize,
) -> cudaError_t
Expand description

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

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

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

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

\return ::cudaSuccess, ::cudaErrorLossyQuery, ::cudaErrorInvalidValue \note_graph_thread_safety \notefnerr \note_init_rt \note_callback

\sa ::cudaGraphNodeGetDependentNodes, ::cudaGraphGetNodes, ::cudaGraphGetRootNodes, ::cudaGraphGetEdges, ::cudaGraphAddDependencies, ::cudaGraphRemoveDependencies