pub unsafe extern "C" fn cudaStreamUpdateCaptureDependencies_v2(
stream: cudaStream_t,
dependencies: *mut cudaGraphNode_t,
dependencyData: *const cudaGraphEdgeData,
numDependencies: usize,
flags: c_uint,
) -> cudaError_t
Expand description
\brief Update the set of dependencies in a capturing stream (12.3+)
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 ::cudaStreamAddCaptureDependencies and ::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 ::cudaStreamAddCaptureDependencies.
Nodes that are removed from the dependency set via this API do not result in ::cudaErrorStreamCaptureUnjoined if they are unreachable from the stream at ::cudaStreamEndCapture.
Returns ::cudaErrorIllegalState if the stream is not capturing.
\param stream - The stream to update \param dependencies - The set of dependencies to add \param dependencyData - Optional array of data associated with each dependency. \param numDependencies - The size of the dependencies array \param flags - See above
\return ::cudaSuccess, ::cudaErrorInvalidValue, ::cudaErrorIllegalState \notefnerr
\sa ::cudaStreamBeginCapture, ::cudaStreamGetCaptureInfo,