-
Notifications
You must be signed in to change notification settings - Fork 797
[SYCL] Store the Adapter as weak_ptr in build results #17802
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] Store the Adapter as weak_ptr in build results #17802
Conversation
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.
Does this change impact the performance?
This change should reduce the shared_ptr copies on the fast path by 2, right? I haven't measured this one, but this is one of the changes in the series of shared_ptr optimizations, so I would expect that overall the performance should be better. |
Thank you! That was exactly my question: if this change impacts the hot path. |
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
Just to clarify - this affects the cache insertion flow, so once in a stable state, it seems like it doesn't affect the fast path. |
No description provided.