hipStreamCreateWithFlags

Function hipStreamCreateWithFlags 

Source
pub unsafe extern "C" fn hipStreamCreateWithFlags(
    stream: *mut hipStream_t,
    flags: c_uint,
) -> hipError_t
Expand description

@brief Creates an asynchronous stream with flag.

@param[in, out] stream Pointer to new stream @param[in] flags Parameters to control stream creation @returns #hipSuccess, #hipErrorInvalidValue

Creates a new asynchronous stream with its associated current device. @p stream returns an opaque handle that can be used to reference the newly created stream in subsequent hipStream* commands. The stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope. To release the memory used by the stream, application must call hipStreamDestroy.

The @p flags parameter controls behavior of the stream. The valid values are #hipStreamDefault and #hipStreamNonBlocking.

@see hipStreamCreate, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy.