Skip to content

Commit

Permalink
Revert "include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h …
Browse files Browse the repository at this point in the history
…- __something_was_found"

This reverts commit 3538d15.
  • Loading branch information
SergeyKopienko committed Jun 26, 2024
1 parent a934c68 commit 4a4b281
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1051,10 +1051,7 @@ struct __early_exit_find_or
// if our "line" is out of work group size, reduce the line to the number of the rest elements
if (__wg_size - __leader < __shift)
__shift = __wg_size - __leader;

bool __something_was_found = false;

for (_IterSize __i = 0; __i < __n_iter && !__something_was_found; ++__i)
for (_IterSize __i = 0; __i < __n_iter; ++__i)
{
//in case of find-semantic __shifted_idx must be the same type as the atomic for a correct comparison
using _ShiftedIdxType = ::std::conditional_t<_OrTagType::value, decltype(__init_index + __i * __shift),
Expand All @@ -1080,7 +1077,7 @@ struct __early_exit_find_or
}
}

__something_was_found = true;
break;
}
}
}
Expand Down

0 comments on commit 4a4b281

Please sign in to comment.