pub unsafe extern "C" fn cudaStreamUpdateCaptureDependencies(
stream: cudaStream_t,
dependencies: *mut cudaGraphNode_t,
dependencyData: *const cudaGraphEdgeData,
numDependencies: size_t,
flags: c_uint,
) -> cudaError_tExpand description
Update the set of dependencies in a capturing stream.
Modifies the dependency set of a capturing stream. The dependency set is the set of nodes that the next captured node in the stream will depend on.
Valid flags are cudaStreamUpdateCaptureDependenciesFlags::cudaStreamAddCaptureDependencies and cudaStreamUpdateCaptureDependenciesFlags::cudaStreamSetCaptureDependencies. These control whether the set passed to the API is added to the existing set or replaces it. A flags value of 0 defaults to cudaStreamUpdateCaptureDependenciesFlags::cudaStreamAddCaptureDependencies.
Nodes that are removed from the dependency set via this API do not result in cudaError_t::CUDA_ERROR_STREAM_CAPTURE_UNJOINED if they are unreachable from the stream at cudaStreamEndCapture.
Returns cudaError_t::CUDA_ERROR_ILLEGAL_STATE if the stream is not capturing.
Note that this function may also return error codes from previous, asynchronous launches.
§Parameters
stream: The stream to update.dependencies: The set of dependencies to add.dependencyData: Optional array of data associated with each dependency.numDependencies: The size of the dependencies array.flags: See above.
§Return value
cudaError_t::CUDA_SUCCESScudaError_t::CUDA_ERROR_INVALID_VALUEcudaError_t::CUDA_ERROR_ILLEGAL_STATE
See also: cudaStreamBeginCapture, cudaStreamGetCaptureInfo.