Skip to content

[SYCL] Add Level-Zero interop with specification of ownership #3231

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 7 commits into from
Mar 2, 2021

Conversation

smaslov-intel
Copy link
Contributor

The Level-Zero backend specified assuming ownership of the native handles used in the interoperability.
There was however request made that this is not sufficient in all cases, e.g. when some memory was created outside SYCL RT in some Level-Zero Context, then working with that memory should always be within the same context. Thus if anyone wanted to "return" something back from SYCL, then the context should still exist and be the same.

This patch only does for context, but probably we'd need to deal with other objects too at some point.

Signed-off-by: Sergey V Maslov [email protected]

@gmlueck
Copy link
Contributor

gmlueck commented Feb 19, 2021

Since you have changed the L0 interop API, it seems like you should also update the documentation at "sycl/doc/extensions/LevelZeroBackend/LevelZeroBackend.md".

@smaslov-intel
Copy link
Contributor Author

Since you have changed the L0 interop API, it seems like you should also update the documentation at "sycl/doc/extensions/LevelZeroBackend/LevelZeroBackend.md".

Sure, I've updated the doc now.

@smaslov-intel smaslov-intel requested a review from a team as a code owner February 22, 2021 01:30
@smaslov-intel
Copy link
Contributor Author

A new E2E test is coming in intel/llvm-test-suite#153

@smaslov-intel
Copy link
Contributor Author

The failure of SYCL/Plugins/level-zero-interop.cpp in precommit testing is expected and is due to a test bug. The fix is coming in:
intel/llvm-test-suite#153

Signed-off-by: Sergey V Maslov <[email protected]>
bso-intel
bso-intel previously approved these changes Feb 22, 2021
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.

@gmlueck
Copy link
Contributor

gmlueck commented Feb 22, 2021

LGTM

gmlueck
gmlueck previously approved these changes Feb 22, 2021
againull
againull previously approved these changes Feb 24, 2021
@smaslov-intel smaslov-intel changed the title [SYCL] Add Level-Zero interop with specification of ownership [SYCL][DO NOT MERGE] Add Level-Zero interop with specification of ownership Feb 24, 2021
@smaslov-intel smaslov-intel dismissed stale reviews from againull, gmlueck, and bso-intel via 068a1f1 February 25, 2021 00:18
@smaslov-intel smaslov-intel changed the title [SYCL][DO NOT MERGE] Add Level-Zero interop with specification of ownership [SYCL] Add Level-Zero interop with specification of ownership Feb 25, 2021
@smaslov-intel
Copy link
Contributor Author

@mkinsner, @jbrodman , @romanovvlad please review

Signed-off-by: Sergey V Maslov <[email protected]>
Signed-off-by: Sergey V Maslov <[email protected]>
@smaslov-intel
Copy link
Contributor Author

Waiting on code owner review from @intel/llvm-reviewers-cuda, @intel/llvm-reviewers-runtime , @intel/dpcpp-specification-reviewers!

@romanovvlad
Copy link
Contributor

@jbrodman Could you please review?

@romanovvlad romanovvlad merged commit 41221e2 into intel:sycl Mar 2, 2021
jsji pushed a commit that referenced this pull request Jun 17, 2025
Extend KhronosGroup/SPIRV-LLVM-Translator#2339
to support also `OpGroupNonUniformShuffle`,
`OpGroupNonUniformShuffleUp`, and `OpGroupNonUniformShuffleXor`.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@a61deeef1dd3e35
vmaksimo pushed a commit that referenced this pull request Jun 30, 2025
Extend KhronosGroup/SPIRV-LLVM-Translator#2339
to support also `OpGroupNonUniformShuffle`,
`OpGroupNonUniformShuffleUp`, and `OpGroupNonUniformShuffleXor`.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@a61deeef1dd3e35
mikolaj-pirog pushed a commit that referenced this pull request Jul 1, 2025
Extend KhronosGroup/SPIRV-LLVM-Translator#2339
to support also `OpGroupNonUniformShuffle`,
`OpGroupNonUniformShuffleUp`, and `OpGroupNonUniformShuffleXor`.

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

6 participants