Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Filter out empty events for the barrier with waitlist (#12951)
Fix for #12177 Now even if the waitlist consists of only empty events we still invoke the scheduler to submit barrier command. Scheduler creates sycl event with associated Barrier Command but doesn't actually enqueue a barrier because waitlist is empty (consists of only empty events). As a result, the event returned by such barrier doesn't have PI handle but it supposed to have. If such event is then passed to some another command later as a dependency then it leads to nullptr dereference. So, filter out such events from waitlist to avoid going to sheduler in such scenarios. Test provided by Andrey Alekseenko <andrey.alekseenko@scilifelab.se> Co-authored-by: Andrey Alekseenko <andrey.alekseenko@scilifelab.se>
- Loading branch information