[Offload][L0] clear completed events from a wait list (#186379)

Queue's WaitEvent collection wasn't being cleared after synchronization
and resetting of the events. This led to hangs on subsequent host
synchronizations if not preceeded by any other operation.
This commit is contained in:
Piotr Balcer 2026-03-13 14:56:27 +01:00 committed by GitHub
parent c513ed117f
commit 1b9a4a0f72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -319,6 +319,9 @@ Error L0DeviceTy::synchronizeImpl(__tgt_async_info &AsyncInfo,
return Err;
}
}
// In either case, all the events are now reset and released
// back into the pool. We need to clear them from the queue.
AsyncQueue->WaitEvents.clear();
}
// Commit delayed USM2M copies.