pub unsafe extern "C" fn cuStreamEndCapture(
hStream: CUstream,
phGraph: *mut CUgraph,
) -> CUresult
Expand description
\brief Ends capture on a stream, returning the captured graph
End capture on \p hStream, returning the captured graph via \p phGraph. Capture must have been initiated on \p hStream via a call to ::cuStreamBeginCapture. If capture was invalidated, due to a violation of the rules of stream capture, then a NULL graph will be returned.
If the \p mode argument to ::cuStreamBeginCapture was not ::CU_STREAM_CAPTURE_MODE_RELAXED, this call must be from the same thread as ::cuStreamBeginCapture.
\param hStream - Stream to query \param phGraph - The captured graph
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD \notefnerr
\sa ::cuStreamCreate, ::cuStreamBeginCapture, ::cuStreamIsCapturing, ::cuGraphDestroy