cuda.bindings._v2.driver.stream_end_capture#

cuda.bindings._v2.driver.stream_end_capture(intptr_t h_stream) → intptr_t#

Ends capture on a stream, returning the captured graph.

End capture on h_stream, returning the captured graph via ph_graph. Capture must have been initiated on h_stream 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 mode argument to cuStreamBeginCapture was not CU_STREAM_CAPTURE_MODE_RELAXED, this call must be from the same thread as cuStreamBeginCapture.

Parameters:

h_stream (intptr_t) – Stream to query.

Returns:

The captured graph.

Return type:

intptr_t

See also

cuStreamEndCapture