From 1b6cd346110735970ea5fbc9f179c4476e51d0ec Mon Sep 17 00:00:00 2001 From: Sergey Kopienko Date: Mon, 18 Nov 2024 16:23:14 +0100 Subject: [PATCH] include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h - fix review comment Signed-off-by: Sergey Kopienko --- .../dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h index 0c341f31de6..8ae3a4b148b 100644 --- a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h +++ b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_merge.h @@ -389,9 +389,9 @@ __parallel_merge(oneapi::dpl::__internal::__device_backend_tag, _ExecutionPolicy const auto __n = __rng1.size() + __rng2.size(); if (__n < 4 * 1'048'576) { - if (__n <= std::numeric_limits::max()) + if (__n <= std::numeric_limits::max()) { - using _WiIndex = std::uint32_t; + using _WiIndex = std::uint16_t; using _MergeKernelName = oneapi::dpl::__par_backend_hetero::__internal::__kernel_name_provider< __merge_kernel_name<_CustomName, _WiIndex>>; return __parallel_merge_submitter<_WiIndex, _MergeKernelName>()( @@ -400,7 +400,7 @@ __parallel_merge(oneapi::dpl::__internal::__device_backend_tag, _ExecutionPolicy } else { - using _WiIndex = std::uint64_t; + using _WiIndex = std::uint32_t; using _MergeKernelName = oneapi::dpl::__par_backend_hetero::__internal::__kernel_name_provider< __merge_kernel_name<_CustomName, _WiIndex>>; return __parallel_merge_submitter<_WiIndex, _MergeKernelName>()(