From 4e278326cabfd8c1379fd91e9a5f28949a2e9fe4 Mon Sep 17 00:00:00 2001 From: Sergey Kopienko Date: Wed, 18 Sep 2024 14:29:05 +0200 Subject: [PATCH] Fix compile errors after delete __future copy creation and copy assignment Signed-off-by: Sergey Kopienko --- .../dpl/internal/async_impl/async_impl_hetero.h | 3 +-- .../dpl/internal/async_impl/glue_async_impl.h | 15 +++++---------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/include/oneapi/dpl/internal/async_impl/async_impl_hetero.h b/include/oneapi/dpl/internal/async_impl/async_impl_hetero.h index af1663a7036..e742299288b 100644 --- a/include/oneapi/dpl/internal/async_impl/async_impl_hetero.h +++ b/include/oneapi/dpl/internal/async_impl/async_impl_hetero.h @@ -42,10 +42,9 @@ __pattern_walk1_async(__hetero_tag<_BackendTag>, _ExecutionPolicy&& __exec, _For oneapi::dpl::__ranges::__get_sycl_range<__par_backend_hetero::access_mode::read_write, _ForwardIterator>(); auto __buf = __keep(__first, __last); - auto __future_obj = oneapi::dpl::__par_backend_hetero::__parallel_for( + return oneapi::dpl::__par_backend_hetero::__parallel_for( _BackendTag{}, ::std::forward<_ExecutionPolicy>(__exec), unseq_backend::walk_n<_ExecutionPolicy, _Function>{__f}, __n, __buf.all_view()); - return __future_obj; } template <__par_backend_hetero::access_mode __acc_mode1 = __par_backend_hetero::access_mode::read, diff --git a/include/oneapi/dpl/internal/async_impl/glue_async_impl.h b/include/oneapi/dpl/internal/async_impl/glue_async_impl.h index dfd4a969ec8..30bb5d037af 100644 --- a/include/oneapi/dpl/internal/async_impl/glue_async_impl.h +++ b/include/oneapi/dpl/internal/async_impl/glue_async_impl.h @@ -46,10 +46,9 @@ transform_async(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIt const auto __dispatch_tag = oneapi::dpl::__internal::__select_backend(__exec, __first, __result); wait_for_all(::std::forward<_Events>(__dependencies)...); - auto ret_val = oneapi::dpl::__internal::__pattern_walk2_async( + return oneapi::dpl::__internal::__pattern_walk2_async( __dispatch_tag, ::std::forward<_ExecutionPolicy>(__exec), __first, __last, __result, oneapi::dpl::__internal::__transform_functor<_UnaryOperation>{::std::move(__op)}); - return ret_val; } template (__dependencies)...); - auto ret_val = oneapi::dpl::__internal::__pattern_walk3_async( + return oneapi::dpl::__internal::__pattern_walk3_async( __dispatch_tag, ::std::forward<_ExecutionPolicy>(__exec), __first1, __last1, __first2, __result, oneapi::dpl::__internal::__transform_functor<_BinaryOperation>(::std::move(__op))); - return ret_val; } // [async.copy] @@ -80,10 +78,9 @@ copy_async(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterato auto __dispatch_tag = oneapi::dpl::__internal::__select_backend(__exec, __first, __result); wait_for_all(::std::forward<_Events>(__dependencies)...); - auto ret_val = oneapi::dpl::__internal::__pattern_walk2_brick_async( + return oneapi::dpl::__internal::__pattern_walk2_brick_async( __dispatch_tag, ::std::forward<_ExecutionPolicy>(__exec), __first, __last, __result, oneapi::dpl::__internal::__brick_copy{}); - return ret_val; } // [async.sort] @@ -127,9 +124,8 @@ for_each_async(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIter const auto __dispatch_tag = oneapi::dpl::__internal::__select_backend(__exec, __first); wait_for_all(::std::forward<_Events>(__dependencies)...); - auto ret_val = oneapi::dpl::__internal::__pattern_walk1_async( + return oneapi::dpl::__internal::__pattern_walk1_async( __dispatch_tag, ::std::forward<_ExecutionPolicy>(__exec), __first, __last, __f); - return ret_val; } // [async.reduce] @@ -144,10 +140,9 @@ reduce_async(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterat const auto __dispatch_tag = oneapi::dpl::__internal::__select_backend(__exec, __first); wait_for_all(::std::forward<_Events>(__dependencies)...); - auto ret_val = oneapi::dpl::__internal::__pattern_transform_reduce_async( + return oneapi::dpl::__internal::__pattern_transform_reduce_async( __dispatch_tag, ::std::forward<_ExecutionPolicy>(__exec), __first, __last, __init, __binary_op, oneapi::dpl::__internal::__no_op()); - return ret_val; } template