Skip to content

[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

Merged
merged 2 commits into from
May 6, 2021

Conversation

v-klochkov
Copy link
Contributor

…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]

…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]>
@v-klochkov v-klochkov requested a review from s-kanaev May 4, 2021 05:21
@v-klochkov v-klochkov requested a review from a team as a code owner May 4, 2021 05:21
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.

LGTM

@v-klochkov
Copy link
Contributor Author

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)
The LIT test is fixed/updated here: intel/llvm-test-suite#263

v-klochkov added a commit to v-klochkov/llvm-test-suite that referenced this pull request May 5, 2021
…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]>
v-klochkov added a commit to intel/llvm-test-suite that referenced this pull request May 5, 2021
…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]>
@v-klochkov v-klochkov merged commit d08c21a into intel:sycl May 6, 2021
@v-klochkov v-klochkov deleted the public_vklochkov_host_task branch May 6, 2021 19:58
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…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]>
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.

2 participants