Skip to content

Commit 5452a5d

Browse files
authored
[SYCL] Fix get_native_mem for interop_handle (#5909)
Fix interop_handle::get_native_mem so that it can work with accessors that use not empty accessor_property_list. Test : intel/llvm-test-suite#954 Signed-off-by: mdimakov <[email protected]>
1 parent e9b5a8e commit 5452a5d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sycl/include/CL/sycl/interop_handle.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ class interop_handle {
4949
/// accessor), the exception `cl::sycl::invalid_object` is thrown
5050
/// asynchronously.
5151
template <backend Backend = backend::opencl, typename DataT, int Dims,
52-
access::mode Mode, access::target Target, access::placeholder IsPlh>
53-
backend_return_t<Backend, buffer<DataT, Dims>>
54-
get_native_mem(const accessor<DataT, Dims, Mode, Target, IsPlh> &Acc) const {
52+
access::mode Mode, access::target Target, access::placeholder IsPlh,
53+
typename PropertyListT = ext::oneapi::accessor_property_list<>>
54+
backend_return_t<Backend, buffer<DataT, Dims>> get_native_mem(
55+
const accessor<DataT, Dims, Mode, Target, IsPlh, PropertyListT> &Acc)
56+
const {
5557
static_assert(Target == access::target::device ||
5658
Target == access::target::constant_buffer,
5759
"The method is available only for target::device accessors");

0 commit comments

Comments
 (0)