From 0d3818f057c0a0b1d18bdd7d0c68cbe998c2bcd1 Mon Sep 17 00:00:00 2001 From: Dmitriy Sobolev Date: Thu, 31 Oct 2024 05:57:25 -0500 Subject: [PATCH 1/2] Make kernel names unique in radix sort Signed-off-by: Dmitriy Sobolev --- .../dpl/pstl/hetero/dpcpp/parallel_backend_sycl_radix_sort.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_radix_sort.h b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_radix_sort.h index b6ee2c4f3b9..1bd31cfa9f0 100644 --- a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_radix_sort.h +++ b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_radix_sort.h @@ -655,7 +655,7 @@ struct __parallel_radix_sort_iteration using _CustomName = oneapi::dpl::__internal::__policy_kernel_name<_ExecutionPolicy>; using _RadixCountKernel = __internal::__kernel_name_generator<__count_phase, _CustomName, _ExecutionPolicy, ::std::decay_t<_InRange>, - ::std::decay_t<_TmpBuf>>; + ::std::decay_t<_TmpBuf>, _Proj>; using _RadixLocalScanKernel = __internal::__kernel_name_generator<__local_scan_phase, _CustomName, _ExecutionPolicy, ::std::decay_t<_TmpBuf>>; using _RadixReorderPeerKernel = From 5ce78b428267ee980b2d3f461d3965825758f74b Mon Sep 17 00:00:00 2001 From: Dmitriy Sobolev Date: Thu, 31 Oct 2024 07:20:01 -0500 Subject: [PATCH 2/2] Apply the same fix to reorder phase Signed-off-by: Dmitriy Sobolev --- .../dpl/pstl/hetero/dpcpp/parallel_backend_sycl_radix_sort.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_radix_sort.h b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_radix_sort.h index 1bd31cfa9f0..a220b3c29ff 100644 --- a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_radix_sort.h +++ b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_radix_sort.h @@ -660,10 +660,10 @@ struct __parallel_radix_sort_iteration _ExecutionPolicy, ::std::decay_t<_TmpBuf>>; using _RadixReorderPeerKernel = __internal::__kernel_name_generator<__reorder_peer_phase, _CustomName, _ExecutionPolicy, - ::std::decay_t<_InRange>, ::std::decay_t<_OutRange>>; + ::std::decay_t<_InRange>, ::std::decay_t<_OutRange>, _Proj>; using _RadixReorderKernel = __internal::__kernel_name_generator<__reorder_phase, _CustomName, _ExecutionPolicy, - ::std::decay_t<_InRange>, ::std::decay_t<_OutRange>>; + ::std::decay_t<_InRange>, ::std::decay_t<_OutRange>, _Proj>; ::std::size_t __max_sg_size = oneapi::dpl::__internal::__max_sub_group_size(__exec); ::std::size_t __reorder_sg_size = __max_sg_size;