pub unsafe extern "C" fn cudaStreamQuery(
stream: cudaStream_t,
) -> cudaError_tExpand description
Queries an asynchronous stream for completion status.
Returns cudaError_t::CUDA_SUCCESS if all operations in stream have completed, or cudaError_t::CUDA_ERROR_NOT_READY if not.
For the purposes of Unified Memory, a return value of cudaError_t::CUDA_SUCCESS is equivalent to having called cudaStreamSynchronize.
Note: This function uses standard default stream semantics.
Note that this function may also return error codes from previous, asynchronous launches.
Note that this function may also return cudaError_t::CUDA_ERROR_NOT_INITIALIZED, cudaErrorInsufficientDriver or cudaError_t::CUDA_ERROR_NO_DEVICE if this call tries to initialize internal CUDA RT state.
Note that as specified by cudaStreamAddCallback no CUDA function may be called from callback. cudaError_t::CUDA_ERROR_NOT_PERMITTED may, but is not guaranteed to, be returned as a diagnostic in such case.
§Parameters
stream: Stream identifier
§Return value
See also: cudaStreamCreate, cudaStreamCreateWithFlags, cudaStreamWaitEvent, cudaStreamSynchronize, cudaStreamAddCallback, cudaStreamDestroy, cuStreamQuery.