-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Fix get_native() and add get_backend() accordingly to the specification and test for the get_native() #3236
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
Conversation
…ification Signed-off-by: mdimakov <[email protected]>
Signed-off-by: mdimakov <[email protected]>
Signed-off-by: mdimakov <[email protected]>
Signed-off-by: mdimakov <[email protected]>
Signed-off-by: mdimakov <[email protected]>
Signed-off-by: mdimakov <[email protected]>
Signed-off-by: mdimakov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@smaslov-intel, could you, please, review. I believe, you are more common with interoperability than me.
Signed-off-by: mdimakov <[email protected]>
Signed-off-by: mdimakov <[email protected]>
@alexbatashev , @smaslov-intel can you review, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I'd like @smaslov-intel to approve.
Signed-off-by: mdimakov <[email protected]>
Signed-off-by: mdimakov <[email protected]>
Signed-off-by: mdimakov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -3897,6 +3897,7 @@ _ZNK2cl4sycl15interop_handler12GetNativeMemEPNS0_6detail16AccessorImplHostE | |||
_ZNK2cl4sycl15interop_handler14GetNativeQueueEv | |||
_ZNK2cl4sycl16default_selectorclERKNS0_6deviceE | |||
_ZNK2cl4sycl20accelerator_selectorclERKNS0_6deviceE | |||
_ZNK2cl4sycl5event11get_backendEv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should minor/patch version of library be increased according to ABI policy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it'll be increased before release is tagged.
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.
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.
Update a test after llvm-project commit 28bda77 ("Introduce MCAsmInfo::UsesSetToEquateSymbol and prefer = to .set", 2025-06-11). Original commit: KhronosGroup/SPIRV-LLVM-Translator@46f225a7d0aa111
Update a test after llvm-project commit 28bda77 ("Introduce MCAsmInfo::UsesSetToEquateSymbol and prefer = to .set", 2025-06-11). Original commit: KhronosGroup/SPIRV-LLVM-Translator@46f225a7d0aa111
Update a test after llvm-project commit 28bda77 ("Introduce MCAsmInfo::UsesSetToEquateSymbol and prefer = to .set", 2025-06-11). Original commit: KhronosGroup/SPIRV-LLVM-Translator@46f225a7d0aa111
Free get_native() method must call retain method for some classes when backend is opencl accordingly to the specification.
Also for these classes there must be get_backend() method.
Test for get_backend() : intel/llvm-test-suite#162