cubecl_hip_sys

Function hipStreamSynchronize

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

@brief Wait for all commands in stream to complete.

@param[in] stream stream identifier.

@return #hipSuccess, #hipErrorInvalidHandle

This command is host-synchronous : the host will block until the specified stream is empty.

This command follows standard null-stream semantics. Specifically, specifying the null stream will cause the command to wait for other streams on the same device to complete all pending operations.

This command honors the hipDeviceLaunchBlocking flag, which controls whether the wait is active or blocking.

@see hipStreamCreate, hipStreamCreateWithFlags, hipStreamCreateWithPriority, hipStreamWaitEvent, hipStreamDestroy