Function hip_sys::hiprt::hipStreamCreate
source · pub unsafe extern "C" fn hipStreamCreate(
stream: *mut *mut ihipStream_t
) -> hipError_tExpand description
@brief Create an asynchronous stream.
@param[in, out] stream Valid pointer to hipStream_t. This function writes the memory with the newly created stream. @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.
@return #hipSuccess, #hipErrorInvalidValue
@see hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy