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

@brief Create an asynchronous stream.

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

Create a new asynchronous stream. @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, applicaiton must call hipStreamDestroy. Flags controls behavior of the stream. See #hipStreamDefault, #hipStreamNonBlocking.

@see hipStreamCreate, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy