Skip to content

[SYCL][PL][L0]Fixes a deadlock that can occur with batching enabled. #3081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 25, 2021
Merged

[SYCL][PL][L0]Fixes a deadlock that can occur with batching enabled. #3081

merged 1 commit into from
Jan 25, 2021

Conversation

kbsmith-intel
Copy link
Contributor

This change causes the event wait list for any command being
enqueued to be checked to see if it was issued into a different
queue than the command that will be waiting on it. If it was,
then for batching to work properly, the currently open batch for
that queue is closed and submitted for execution.

This change causes the event wait list for any command being
enqueued to be checked to see if it was issued into a different
queue than the command that will be waiting on it.  If it was,
then for batching to work properly, the currently open batch for
that queue is closed and submitted for execution.
@@ -4059,6 +4075,11 @@ pi_result piEnqueueEventsWaitWithBarrier(pi_queue Queue,
PI_ASSERT(Queue, PI_INVALID_QUEUE);
PI_ASSERT(Event, PI_INVALID_EVENT);

_pi_ze_event_list_t TmpWaitList;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: there is a similar change to this function coming in #3045
I think I prefer to wait for this PR to land, and rebase #3045 over it, so please go ahead.

@romanovvlad romanovvlad merged commit 645db17 into intel:sycl Jan 25, 2021
@kbsmith-intel kbsmith-intel deleted the cross_queue_batch_flush branch January 25, 2021 14:46
vladimirlaz pushed a commit to intel/llvm-test-suite that referenced this pull request Feb 10, 2021
…#139)

The test was initially disabled due to a bug in the Level Zero plugin that led
to a hang, which has already been fixed in
intel/llvm#3081

Despite that, the test should stay disabled since the tested
functionality is to be temporarily turned off for Level Zero in
intel/llvm#3188
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…intel/llvm-test-suite#139)

The test was initially disabled due to a bug in the Level Zero plugin that led
to a hang, which has already been fixed in
intel#3081

Despite that, the test should stay disabled since the tested
functionality is to be temporarily turned off for Level Zero in
intel#3188
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants