Function cuStreamGetFlags

Source
pub unsafe extern "C" fn cuStreamGetFlags(
    hStream: CUstream,
    flags: *mut c_uint,
) -> CUresult
Expand description

\brief Query the flags of a given stream

Query the flags of a stream created using ::cuStreamCreate, ::cuStreamCreateWithPriority or ::cuGreenCtxStreamCreate and return the flags in \p flags.

\param hStream - Handle to the stream to be queried \param flags - Pointer to an unsigned integer in which the stream’s flags are returned The value returned in \p flags is a logical ‘OR’ of all flags that were used while creating this stream. See ::cuStreamCreate for the list of valid flags \return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_OUT_OF_MEMORY \notefnerr

\sa ::cuStreamDestroy, ::cuStreamCreate, ::cuGreenCtxStreamCreate, ::cuStreamGetPriority, ::cudaStreamGetFlags