From 76a7b893e4c62d52eae2c165bdb23952a8589689 Mon Sep 17 00:00:00 2001 From: Andrew Woloszyn Date: Fri, 20 Dec 2024 14:21:00 -0800 Subject: [PATCH] Revert "[hip] Fixed a busy wait in event_semaphore." (#19548) Reverts iree-org/iree#19540 This might be causing flakes in some of the bots. --- runtime/src/iree/hal/drivers/hip/event_semaphore.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/src/iree/hal/drivers/hip/event_semaphore.c b/runtime/src/iree/hal/drivers/hip/event_semaphore.c index ddd00fc42a4d..276290c5f006 100644 --- a/runtime/src/iree/hal/drivers/hip/event_semaphore.c +++ b/runtime/src/iree/hal/drivers/hip/event_semaphore.c @@ -842,6 +842,10 @@ static iree_status_t iree_hal_hip_semaphore_wait( iree_notification_prepare_wait(&semaphore->state_notification); iree_slim_mutex_unlock(&semaphore->mutex); + // We are going to pick up the correct status from query_locked below. + iree_status_ignore( + iree_hal_hip_event_semaphore_run_scheduled_callbacks(base_semaphore)); + // We have to wait for the semaphore to catch up. bool committed = iree_notification_commit_wait(&semaphore->state_notification, wait,