Skip to main content

cudaGraphNodeGetDependentNodes

Function cudaGraphNodeGetDependentNodes 

Source
pub unsafe extern "C" fn cudaGraphNodeGetDependentNodes(
    node: cudaGraphNode_t,
    pDependentNodes: *mut cudaGraphNode_t,
    edgeData: *mut cudaGraphEdgeData,
    pNumDependentNodes: *mut size_t,
) -> cudaError_t
Expand description

Returns a node’s dependent nodes.

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

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

§Parameters

  • node: Node to query.
  • pDependentNodes: Pointer to return the dependent nodes.
  • edgeData: Optional pointer to return edge data for dependent nodes.
  • pNumDependentNodes: See description.