pub unsafe extern "C" fn cuStreamIsCapturing(
hStream: CUstream,
captureStatus: *mut CUstreamCaptureStatus,
) -> CUresult
Expand description
\brief Returns a stream’s capture status
Return the capture status of \p hStream via \p captureStatus. After a successful call, \p *captureStatus will contain one of the following:
- ::CU_STREAM_CAPTURE_STATUS_NONE: The stream is not capturing.
- ::CU_STREAM_CAPTURE_STATUS_ACTIVE: The stream is capturing.
- ::CU_STREAM_CAPTURE_STATUS_INVALIDATED: The stream was capturing but an error has invalidated the capture sequence. The capture sequence must be terminated with ::cuStreamEndCapture on the stream where it was initiated in order to continue using \p hStream.
Note that, if this is called on ::CU_STREAM_LEGACY (the “null stream”) while a blocking stream in the same context is capturing, it will return ::CUDA_ERROR_STREAM_CAPTURE_IMPLICIT and \p *captureStatus is unspecified after the call. The blocking stream capture is not invalidated.
When a blocking stream is capturing, the legacy stream is in an unusable state until the blocking stream capture is terminated. The legacy stream is not supported for stream capture, but attempted use would have an implicit dependency on the capturing stream(s).
\param hStream - Stream to query \param captureStatus - Returns the stream’s capture status
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_STREAM_CAPTURE_IMPLICIT \notefnerr
\sa ::cuStreamCreate, ::cuStreamBeginCapture, ::cuStreamEndCapture