From dd3ed437e39b40fce12779065b0ddb8b9e96c158 Mon Sep 17 00:00:00 2001 From: Dmitriy Sobolev Date: Mon, 6 Jan 2025 21:41:58 +0000 Subject: [PATCH] Fix ambiguous call to sycl::min --- .../oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h index f5275b501a9..3d9d923d80d 100644 --- a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h +++ b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h @@ -74,7 +74,7 @@ __slm_adjusted_work_group_size(const _ExecutionPolicy& __policy, _Size __local_m if (__wg_size == 0) __wg_size = __max_work_group_size(__policy); auto __local_mem_size = __policy.queue().get_device().template get_info(); - return sycl::min(__local_mem_size / __local_mem_per_wi, __wg_size); + return sycl::min<_Size>(__local_mem_size / __local_mem_per_wi, __wg_size); } #if _ONEDPL_USE_SUB_GROUPS