pub unsafe extern "C" fn cudaStreamGetFlags(
hStream: cudaStream_t,
flags: *mut c_uint,
) -> cudaError_tExpand description
Query the flags of a stream.
Query the flags of a stream. The flags are returned in flags. See cudaStreamCreateWithFlags for a list of valid flags.
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
hStream: Handle to the stream to be queried.flags: Pointer to an unsigned integer in which the stream’s flags are returned.
§Return value
cudaError_t::CUDA_SUCCESScudaError_t::CUDA_ERROR_INVALID_VALUEcudaError_t::CUDA_ERROR_INVALID_HANDLE
See also: cudaStreamCreateWithPriority, cudaStreamCreateWithFlags, cudaStreamGetPriority, cudaStreamGetDevice, cuStreamGetFlags.