Skip to content

Commit 76a7b89

Browse files
authored
Revert "[hip] Fixed a busy wait in event_semaphore." (#19548)
Reverts #19540 This might be causing flakes in some of the bots.
1 parent 0a0483e commit 76a7b89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

runtime/src/iree/hal/drivers/hip/event_semaphore.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,10 @@ static iree_status_t iree_hal_hip_semaphore_wait(
842842
iree_notification_prepare_wait(&semaphore->state_notification);
843843
iree_slim_mutex_unlock(&semaphore->mutex);
844844

845+
// We are going to pick up the correct status from query_locked below.
846+
iree_status_ignore(
847+
iree_hal_hip_event_semaphore_run_scheduled_callbacks(base_semaphore));
848+
845849
// We have to wait for the semaphore to catch up.
846850
bool committed =
847851
iree_notification_commit_wait(&semaphore->state_notification, wait,

0 commit comments

Comments
 (0)