cubecl_hip_sys

Function hipStreamQuery

Source
pub unsafe extern "C" fn hipStreamQuery(
    stream: hipStream_t,
) -> hipError_t
Expand description

@brief Return #hipSuccess if all of the operations in the specified @p stream have completed, or #hipErrorNotReady if not.

@param[in] stream stream to query

@return #hipSuccess, #hipErrorNotReady, #hipErrorInvalidHandle

This is thread-safe and returns a snapshot of the current state of the queue. However, if other host threads are sending work to the stream, the status may change immediately after the function is called. It is typically used for debug.

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