Skip to content

[SYCL] Fix refcounting for kernel_bundle interop with OpenCL #8465

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
Mar 2, 2023

Conversation

aelovikov-intel
Copy link
Contributor

OpenCL interop spec basically says that each "conversion" must adjust reference counter of the underlying object. Many of the interop interfaces had been fixed in #3236 but the majority of the kernel_bundle feature was implemented after that and made the same omission.

I'm not sure if that is the best way to fix it though. Another alternative would be to move all these retains into the OpenCL PI plugin.

OpenCL interop spec basically says that each "conversion" must adjust
reference counter of the underlying object. Many of the interop
interfaces had been fixed in intel#3236 but
the majority of the kernel_bundle feature was implemented after that and
made the same omission.

I'm not sure if that is the best way to fix it though. Another
alternative would be to move all these retains into the OpenCL PI
plugin.
@aelovikov-intel aelovikov-intel temporarily deployed to aws February 25, 2023 00:27 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel temporarily deployed to aws February 25, 2023 01:00 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel marked this pull request as ready for review February 25, 2023 02:24
@aelovikov-intel aelovikov-intel requested a review from a team as a code owner February 25, 2023 02:24
@aelovikov-intel
Copy link
Contributor Author

Test: intel/llvm-test-suite#1622

@aelovikov-intel
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1622

Copy link
Contributor

@bso-intel bso-intel left a comment

Choose a reason for hiding this comment

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

LGTM

@aelovikov-intel
Copy link
Contributor Author

@intel/llvm-gatekeepers both this PR and its llvm-test-suite counterpart are ready.

@bader bader merged commit 0e6d6ea into intel:sycl Mar 2, 2023
@aelovikov-intel aelovikov-intel deleted the kernel_bundle-ocl-interop branch April 7, 2023 15:57
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.

4 participants