Skip to main content

cudaStreamEndCapture

Function cudaStreamEndCapture 

Source
pub unsafe extern "C" fn cudaStreamEndCapture(
    stream: cudaStream_t,
    pGraph: *mut cudaGraph_t,
) -> cudaError_t
Expand 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.

ยงParameters

  • stream: Stream to query.
  • pGraph: The captured graph.