From 39b572f6bb556d0b274655c790fbe8bb6a3206a0 Mon Sep 17 00:00:00 2001 From: Matthew Michel Date: Wed, 25 Sep 2024 13:17:30 -0500 Subject: [PATCH] Accept ranges as forwarding references in __parallel_for_large_submitter Signed-off-by: Matthew Michel --- .../dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h index 85139bd92a..63148e0be6 100644 --- a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h +++ b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h @@ -252,16 +252,16 @@ struct __parallel_for_small_submitter<__internal::__optional_kernel_name<_Name.. } }; -template +template struct __parallel_for_large_submitter; -template -struct __parallel_for_large_submitter<__internal::__optional_kernel_name<_Name...>, _Ranges...> +template +struct __parallel_for_large_submitter<__internal::__optional_kernel_name<_Name...>, _RangeTypes...> { // Flatten the range as std::tuple value types in the range are likely coming from separate ranges in a zip // iterator. using _FlattenedRangesTuple = typename oneapi::dpl::__internal::__flatten_std_or_internal_tuple< - std::tuple...>>::type; + std::tuple...>>::type; static constexpr std::size_t __min_type_size = oneapi::dpl::__internal::__min_tuple_type_size_v<_FlattenedRangesTuple>; // __iters_per_work_item is set to 1, 2, 4, 8, or 16 depending on the smallest type in the @@ -320,7 +320,7 @@ struct __parallel_for_large_submitter<__internal::__optional_kernel_name<_Name.. return __work_group_size * __iters_per_work_item * __max_cu; } - template + template auto operator()(_ExecutionPolicy&& __exec, _Fp __brick, _Index __count, _Ranges&&... __rngs) const {