Skip to content

Commit

Permalink
include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h - remove…
Browse files Browse the repository at this point in the history
… extra call of __comp(__found_local.load(), __found.load())

Signed-off-by: Sergey Kopienko <[email protected]>
  • Loading branch information
SergeyKopienko committed Jun 10, 2024
1 parent e376470 commit 1e2397e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 1e2397e

Please sign in to comment.