-
Notifications
You must be signed in to change notification settings - Fork 795
[SYCL] Fix coverity hits in queue & graph #20617
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
base: sycl
Are you sure you want to change the base?
[SYCL] Fix coverity hits in queue & graph #20617
Conversation
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
| bool graph_impl::clearQueues() { | ||
| bool AnyQueuesCleared = false; | ||
| for (auto &Queue : MRecordingQueues) { | ||
| void graph_impl::clearQueues(bool NeedsLock) { |
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.
the intention is to avoid lock of queue_impl::MMutex (setCommandGraph) under graph_impl::MMutex lock since we have exact reverse order lock in submission path.
|
|
||
| void setCommandGraphUnlocked( | ||
| std::shared_ptr<ext::oneapi::experimental::detail::graph_impl> Graph) { | ||
| const std::shared_ptr<ext::oneapi::experimental::detail::graph_impl> |
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.
fixing "copy instead of move"
|
Some of these changes seem to overlap with #20614. |
|
@intel/sycl-graphs-reviewers kindly ping, could you please provide feedback on graph related changes? |
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
steffenlarsen
left a comment
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.
LGTM!
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
reble
left a comment
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.
LGTM
No description provided.