pub unsafe extern "C" fn cudaStreamEndCapture(
stream: cudaStream_t,
pGraph: *mut cudaGraph_t,
) -> cudaError_tExpand description
Ends capture on a stream, returning the captured graph.
End capture on stream, returning the captured graph via pGraph. Capture must have been initiated on stream via a call to cudaStreamBeginCapture. If capture was invalidated, due to a violation of the rules of stream capture, then a NULL graph will be returned.
If the mode argument to cudaStreamBeginCapture was not cudaStreamCaptureModeRelaxed, this call must be from the same thread as cudaStreamBeginCapture.
Note that this function may also return error codes from previous, asynchronous launches.
§Parameters
stream: Stream to query.pGraph: The captured graph.
§Return value
cudaError_t::CUDA_SUCCESScudaError_t::CUDA_ERROR_INVALID_VALUEcudaError_t::CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD
See also: cudaStreamCreate, cudaStreamBeginCapture, cudaStreamIsCapturing, cudaGraphDestroy.