cubecl_hip_sys

Function hipStreamCreateWithPriority

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

@brief Create an asynchronous stream with the specified priority.

@param[in, out] stream Pointer to new stream @param[in ] flags to control stream creation. @param[in ] priority of the stream. Lower numbers represent higher priorities. @return #hipSuccess, #hipErrorInvalidValue

Create a new asynchronous stream with the specified priority. @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. Flags controls behavior of the stream. See #hipStreamDefault, #hipStreamNonBlocking.

@see hipStreamCreate, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy