File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
include/oneapi/dpl/pstl/hetero/dpcpp Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -585,15 +585,15 @@ struct __result_storage
585585
586586 // Note: this member function assumes a kernel has completed and the result can be transferred to host
587587 _T
588- __get_value (std::size_t __idx = 0 ) const
588+ __get_value (std::size_t __idx = 0 )
589589 {
590590 if (__kind == sycl::usm::alloc::host)
591591 {
592592 return *(__result_buf.get () + __idx);
593593 }
594594 else if (__kind == sycl::usm::alloc::device)
595595 {
596- sycl::queue __q = __result_buf.get_deleter ().__q ;
596+ sycl::queue& __q = __result_buf.get_deleter ().__q ;
597597 // Avoid default constructor for _T. It is device copyable, therefore a copy construction
598598 // is equivalent to a bitwise copy and __space.__v is effectively constructed after memcpy.
599599 oneapi::dpl::__internal::__lazy_ctor_storage<_T> __space;
@@ -606,7 +606,7 @@ struct __result_storage
606606 }
607607 else
608608 {
609- return __sycl_buf-> get_host_access (sycl::read_only)[__idx];
609+ return __sycl_buf. get_host_access (sycl::read_only)[__idx];
610610 }
611611 }
612612};
You can’t perform that action at this time.
0 commit comments