pub unsafe extern "C" fn hipStreamCreateWithPriority(
stream: *mut hipStream_t,
flags: c_uint,
priority: c_int,
) -> hipError_tExpand description
@brief Creates an asynchronous stream with the specified priority.
@param[in, out] stream Pointer to new stream @param[in] flags Parameters to control stream creation @param[in] priority Priority of the stream. Lower numbers represent higher priorities. @returns #hipSuccess, #hipErrorInvalidValue
Creates a new asynchronous stream with the specified priority, 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, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy