From 6aef56c4196e404118d5edf5230abdff8e25fbf3 Mon Sep 17 00:00:00 2001 From: Sergey Kopienko Date: Wed, 15 Jan 2025 10:46:27 +0100 Subject: [PATCH] include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h - move KernelName template parameter to last position --- .../pstl/hetero/dpcpp/parallel_backend_sycl.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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 3d17d66536..cc3e9af8d4 100644 --- a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h +++ b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h @@ -1776,12 +1776,12 @@ struct __parallel_find_or_nd_range_tuner +template struct __parallel_find_or_impl_one_wg; // Base pattern for __parallel_or and __parallel_find. The execution depends on tag type _BrickTag. -template -struct __parallel_find_or_impl_one_wg<__internal::__optional_kernel_name, __or_tag_check> +template +struct __parallel_find_or_impl_one_wg<__or_tag_check, __internal::__optional_kernel_name> { template @@ -1841,12 +1841,12 @@ struct __parallel_find_or_impl_one_wg<__internal::__optional_kernel_name +template struct __parallel_find_or_impl_multiple_wgs; // Base pattern for __parallel_or and __parallel_find. The execution depends on tag type _BrickTag. -template -struct __parallel_find_or_impl_multiple_wgs<__internal::__optional_kernel_name, __or_tag_check> +template +struct __parallel_find_or_impl_multiple_wgs<__or_tag_check, __internal::__optional_kernel_name> { template @@ -1949,7 +1949,7 @@ __parallel_find_or(oneapi::dpl::__internal::__device_backend_tag, _ExecutionPoli oneapi::dpl::__par_backend_hetero::__internal::__kernel_name_provider<__find_or_kernel_one_wg<_CustomName>>; // Single WG implementation - __result = __parallel_find_or_impl_one_wg<_KernelName, __or_tag_check>()( + __result = __parallel_find_or_impl_one_wg<__or_tag_check, _KernelName>()( oneapi::dpl::__internal::__device_backend_tag{}, std::forward<_ExecutionPolicy>(__exec), __brick_tag, __rng_n, __wgroup_size, __init_value, __pred, std::forward<_Ranges>(__rngs)...); } @@ -1962,7 +1962,7 @@ __parallel_find_or(oneapi::dpl::__internal::__device_backend_tag, _ExecutionPoli oneapi::dpl::__par_backend_hetero::__internal::__kernel_name_provider<__find_or_kernel<_CustomName>>; // Multiple WG implementation - __result = __parallel_find_or_impl_multiple_wgs<_KernelName, __or_tag_check>()( + __result = __parallel_find_or_impl_multiple_wgs<__or_tag_check, _KernelName>()( oneapi::dpl::__internal::__device_backend_tag{}, std::forward<_ExecutionPolicy>(__exec), __brick_tag, __rng_n, __n_groups, __wgroup_size, __init_value, __pred, std::forward<_Ranges>(__rngs)...); }