From 76c3c1690a3d9526e4ca6403dc2b3aa7d85b3d2f Mon Sep 17 00:00:00 2001 From: MikeDvorskiy Date: Fri, 27 Dec 2024 18:14:50 +0100 Subject: [PATCH] ++ --- .../dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h index 9bcc487992..687aa98d70 100644 --- a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h +++ b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h @@ -523,7 +523,7 @@ template struct __result_and_scratch_storage_base { virtual ~__result_and_scratch_storage_base() = default; - virtual _T __wait_and_get_value(const sycl::event&, std::size_t) const = 0; + virtual _T __wait_and_get_value(sycl::event, std::size_t) const = 0; }; template @@ -684,7 +684,7 @@ struct __result_and_scratch_storage : __result_and_scratch_storage_base<_T> } } - virtual _T __wait_and_get_value(const sycl::event& __event, std::size_t idx = 0) const override + virtual _T __wait_and_get_value(sycl::event __event, std::size_t idx = 0) const override { if (is_USM()) __event.wait_and_throw();