-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL] Use SYCL-2020 backend_return_t<> in interop_handle instead of … #3685
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
…interop<> The corresponding changes in LIT tests: intel/llvm-test-suite#263 This patch also removes the implementation of the method get_native_mem accepting accessor with target not equal to global_buffer/constant_buffer. That method always threw exception, which is wrong as that is the runtime handling of an obvious error, which must be detected earlier - at compile time. The template parameter 'backend Backend = backend::opencl' remains as one having the default value to not break compatibility with older behavior of interop_handle::get_native_mem(), which could be called without explicit specification of the 'backend' template parameter. Signed-off-by: Vyacheslav N Klochkov <[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
The only one failed test is "SYCL :: HostInteropTask/interop-task.cpp", which is EXPECTED FAIL because the patch removed the implementation of of the method get_native_mem() accepting accessor with target not equal to global_buffer/constant_buffer. (See the reasoning in the description) |
…tive_mem() This check verifies a situation that is always wrong and causing an exception at runtime. The patch intel/llvm#3685 removes the method throwing exception at runtime and lets see the error at compile time. The temporarily removed test6() will be returned and improved in consequent changes: intel#263 Removal of test6() is needed to have a clean CI run for #3685 Signed-off-by: Vyacheslav N Klochkov <[email protected]>
…tive_mem() (#269) This check verifies a situation that is always wrong and causing an exception at runtime. The patch intel/llvm#3685 removes the method throwing exception at runtime and lets see the error at compile time. The temporarily removed test6() will be returned and improved in consequent changes: #263 Removal of test6() is needed to have a clean CI run for #3685 Signed-off-by: Vyacheslav N Klochkov <[email protected]>
…tive_mem() (intel/llvm-test-suite#269) This check verifies a situation that is always wrong and causing an exception at runtime. The patch intel#3685 removes the method throwing exception at runtime and lets see the error at compile time. The temporarily removed test6() will be returned and improved in consequent changes: intel/llvm-test-suite#263 Removal of test6() is needed to have a clean CI run for intel#3685 Signed-off-by: Vyacheslav N Klochkov <[email protected]>
…interop<>
The corresponding changes in LIT tests:
intel/llvm-test-suite#263
This patch also removes the implementation of the method get_native_mem
accepting accessor with target not equal to global_buffer/constant_buffer.
That method always threw exception, which is wrong as that is the runtime
handling of an obvious error, which must be detected earlier - at compile time.
The template parameter 'backend Backend = backend::opencl' remains as one
having the default value to not break compatibility with older behavior
of interop_handle::get_native_mem(), which could be called without
explicit specification of the 'backend' template parameter.
Signed-off-by: Vyacheslav N Klochkov [email protected]