From 1e2397e8e27cdf39e0cbcb6476d3f50d5e47021f Mon Sep 17 00:00:00 2001 From: Sergey Kopienko Date: Fri, 7 Jun 2024 16:34:52 +0200 Subject: [PATCH] include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h - remove extra call of __comp(__found_local.load(), __found.load()) Signed-off-by: Sergey Kopienko --- include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ba49c403c80..d94fcaef954 100644 --- a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h +++ b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h @@ -1293,7 +1293,7 @@ __parallel_find_or(oneapi::dpl::__internal::__device_backend_tag, _ExecutionPoli // Point #A4 // Set local atomic value to global atomic - if (__local_idx == 0 && __comp(__found_local.load(), __found.load())) + if (__local_idx == 0) { for (auto __old = __found.load(); __comp(__found_local.load(), __old); __old = __found.load())