Skip to content
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] Fix retaining of kernels in old kernel interop #7034

Merged

Conversation

steffenlarsen
Copy link
Contributor

#6980 caused some unexpected regressions on OpenCL for SYCL 1.2.1 kernel interop constructors. This commit reintroduces the call to retaining the OpenCL kernel only for the old constructor.

intel#6980 caused some unexpected
regressions on OpenCL for SYCL 1.2.1 kernel interop constructors. This
commit reintroduces the call to retaining the OpenCL kernel only for the
old constructor.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Copy link
Contributor

@cperkinsintel cperkinsintel left a comment

Choose a reason for hiding this comment

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

LGTM, but @smaslov-intel should probably weigh in. Does this potentially double the retain being performed at backend.cpp as noted https://github.com/intel/llvm/pull/6980/files ?

@steffenlarsen
Copy link
Contributor Author

LGTM, but @smaslov-intel should probably weigh in. Does this potentially double the retain being performed at backend.cpp as noted https://github.com/intel/llvm/pull/6980/files ?

make_kernel is the new API and will not use the SYCL 1.2.1 interop constructor.

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