Skip to content

[SYCL] Avoid event_impl shared_ptr copy #17859

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
Apr 8, 2025

Conversation

slawekptak
Copy link
Contributor

Avoid the event_impl shared_ptr copy by removing a temporary variable and using a reference instead.

Avoid the event_impl shared_ptr copy by removing a temporary variable
and using a reference instead.
@slawekptak slawekptak marked this pull request as ready for review April 7, 2025 08:45
@slawekptak slawekptak requested a review from a team as a code owner April 7, 2025 08:45
@slawekptak slawekptak requested a review from uditagarwal97 April 7, 2025 08:45
detail::getSyclObjImpl(MLastEvent);

bool DiscardEvent = (MQueue->MDiscardEvents || !impl->MEventNeeded) &&
MQueue->supportsDiscardingPiEvents();
Copy link
Contributor

Choose a reason for hiding this comment

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

supportsDiscardingPiEvents
Unrelated to this PR, but, I thought we have renamed all PI* to UR.

@uditagarwal97 uditagarwal97 merged commit 2db918d into intel:sycl Apr 8, 2025
48 of 50 checks passed
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.

None yet

2 participants