Function cuStreamDestroy_v2

Source
pub unsafe extern "C" fn cuStreamDestroy_v2(
    hStream: CUstream,
) -> CUresult
Expand description

\brief Destroys a stream

Destroys the stream specified by \p hStream.

In case the device is still doing work in the stream \p hStream when ::cuStreamDestroy() is called, the function will return immediately and the resources associated with \p hStream will be released automatically once the device has completed all work in \p hStream.

\param hStream - Stream to destroy

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_HANDLE \notefnerr

\sa ::cuStreamCreate, ::cuStreamWaitEvent, ::cuStreamQuery, ::cuStreamSynchronize, ::cuStreamAddCallback, ::cudaStreamDestroy