Function cuStreamUpdateCaptureDependencies

Source
pub unsafe extern "C" fn cuStreamUpdateCaptureDependencies(
    hStream: CUstream,
    dependencies: *mut CUgraphNode,
    numDependencies: usize,
    flags: c_uint,
) -> CUresult
Expand description

\brief Update the set of dependencies in a capturing stream (11.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 ::CU_STREAM_ADD_CAPTURE_DEPENDENCIES and ::CU_STREAM_SET_CAPTURE_DEPENDENCIES. 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 ::CU_STREAM_ADD_CAPTURE_DEPENDENCIES.

Nodes that are removed from the dependency set via this API do not result in ::CUDA_ERROR_STREAM_CAPTURE_UNJOINED if they are unreachable from the stream at ::cuStreamEndCapture.

Returns ::CUDA_ERROR_ILLEGAL_STATE if the stream is not capturing.

This API is new in CUDA 11.3. Developers requiring compatibility across minor versions to CUDA 11.0 should not use this API or provide a fallback.

\param hStream - The stream to update \param dependencies - The set of dependencies to add \param numDependencies - The size of the dependencies array \param flags - See above

\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_ILLEGAL_STATE

\sa ::cuStreamBeginCapture, ::cuStreamGetCaptureInfo,