Skip to content

[SYCL] Fix opencl/sycl interoperability #2234

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 3 commits into from
Aug 6, 2020

Conversation

nawrinsu
Copy link
Contributor

Currently SYCL object creation from OpenCL object fails with
segmentation fault because of invalid GlobalPlugin. This patch fixes opencl/sycl
interop constructor by initializing GlobalPlugin before using it.

Signed-off-by: Nawrin Sultana [email protected]

@nawrinsu nawrinsu requested a review from a team as a code owner July 31, 2020 17:16
@nawrinsu nawrinsu requested a review from s-kanaev July 31, 2020 17:16
@nawrinsu nawrinsu force-pushed the opencl_interop_constructor branch from 4092fba to 543ffc4 Compare July 31, 2020 17:22
@s-kanaev
Copy link
Contributor

@nawrinsu Please, add a test for this case.

@nawrinsu nawrinsu force-pushed the opencl_interop_constructor branch 6 times, most recently from 3e2f1b0 to 4f92e76 Compare August 1, 2020 04:10
Currently SYCL object creation from OpenCL object fails with
segmentation fault because of invalid GlobalPlugin. This patch fixes opencl/sycl
interop constructor by initializing GlobalPlugin before using it.

Signed-off-by: Nawrin Sultana <[email protected]>
@nawrinsu nawrinsu force-pushed the opencl_interop_constructor branch from 4f92e76 to a2ec408 Compare August 3, 2020 15:10
@s-kanaev
Copy link
Contributor

s-kanaev commented Aug 4, 2020

@nawrinsu please don't use force-push as it doesn't allow to track changes and makes us do the full review again.

@romanovvlad romanovvlad requested a review from s-kanaev August 4, 2020 19:39
Copy link
Contributor

@s-kanaev s-kanaev left a comment

Choose a reason for hiding this comment

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

The changes look good to me.
@nawrinsu Please resolve the comments if you believe you've fixed them.

@bader bader merged commit c4c3494 into intel:sycl Aug 6, 2020
jsji pushed a commit that referenced this pull request Nov 30, 2023
- change Scope argument to one of two available options: ScopeWorkgroup/ScopeWorkgroup
- fix arguments order in calls to OpCooperativeMatrixLoadKHR()

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@4e1d3e0
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