Function rcudnn_sys::cudaStreamGetCaptureInfo [−][src]
pub unsafe extern "C" fn cudaStreamGetCaptureInfo(
stream: cudaStream_t,
pCaptureStatus: *mut cudaStreamCaptureStatus,
pId: *mut c_ulonglong
) -> cudaError_t
Expand description
\brief Query capture status of a stream
Note there is a later version of this API, ::cudaStreamGetCaptureInfo_v2. It will supplant this version in 12.0, which is retained for minor version compatibility.
Query the capture status of a stream and get a unique id representing the capture sequence over the lifetime of the process.
If called on ::cudaStreamLegacy (the “null stream”) while a stream not created with ::cudaStreamNonBlocking is capturing, returns ::cudaErrorStreamCaptureImplicit.
A valid id is returned only if both of the following are true:
- the call returns ::cudaSuccess
- captureStatus is set to ::cudaStreamCaptureStatusActive
\param stream - Stream to query \param pCaptureStatus - Returns the stream’s capture status \param pId - Returns the unique id of the capture sequence
\return ::cudaSuccess, ::cudaErrorStreamCaptureImplicit \notefnerr
\sa ::cudaStreamGetCaptureInfo_v2, ::cudaStreamBeginCapture, ::cudaStreamIsCapturing