Skip to content

[SYCL] ProgramManager: Remove invalidated entries in NativePrograms before insert #15973

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 9 commits into from
Jan 8, 2025

Conversation

KseniyaTikhomirova
Copy link
Contributor

Fixes #14972

This commit erases existing entries with ur handle that is just created/returned by backend. All existing entries in NativePrograms are known to be invalid in this case.
Could not erase them on UrProgramRelease call since we have no tracking of program handle references on SYCL RT level and it is not feasible to add it. Obtaining ref count from ur is not thread safe and not a feature to base product on.

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]>
@KseniyaTikhomirova KseniyaTikhomirova marked this pull request as ready for review December 5, 2024 14:59
@KseniyaTikhomirova KseniyaTikhomirova requested a review from a team as a code owner December 5, 2024 14:59
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
Copy link
Contributor

@sergey-semenov sergey-semenov left a comment

Choose a reason for hiding this comment

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

LGTM, just a tiny nitpick.

@KseniyaTikhomirova
Copy link
Contributor Author

@intel/llvm-gatekeepers hi, this PR is ready to be merged

@martygrant martygrant merged commit e65de89 into intel:sycl Jan 8, 2025
17 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.

Invalidated entries in NativePrograms multimap
3 participants