-
Notifications
You must be signed in to change notification settings - Fork 798
[SYCL] Fix depends_on handling with pi commands #5901
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
[SYCL] Fix depends_on handling with pi commands #5901
Conversation
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
…up of blocked commands) Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
b45914e
to
1238b1e
Compare
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
7c2bab3
to
78643fc
Compare
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
@sergey-semenov , @s-kanaev , @romanovvlad , hi, folks, could you please review since you know almost all context for this change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partial review done.
To be continued :-)
sycl/source/detail/event_impl.cpp
Outdated
else if (MCommand) | ||
return sycl::info::event_command_status::submitted; | ||
} | ||
return MHostEvent && MState.load() != HES_Complete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be the same if we just return submitted
if MState.load() != HES_Complete
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, now MHostEvent check seems to be redundant here, thanks.
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor comments aside, LGTM
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
@intel/llvm-gatekeepers this commit is ready to merge, could you help please? |
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Cross dependency event_impl vs queue_impl prevents objects release. Event_impl now has only weak pointer to queue. Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Fixes two related issues:
AddDep always call processDepEvent which distributes events to MPreparedDepsEvents (pi event expected) and MPreparedHostDepsEvents (no pi event) so replacement of MDeps in enqueueCommand should be valid.