fix(find_first_of): add missing early return and fix datapar iterator dependency#7161
Conversation
|
Can one of the admins verify this patch? |
Up to standards ✅🟢 Issues
|
|
Could you please fix the inspect issues reported. Also, please rebase onto master and resolve the conflicts. |
8090700 to
b7d2826
Compare
|
Hi @hkaiser, I have rebased the PR onto the latest master and resolved the conflicts. I also fixed the inspect issues by adding the missing header and replacing the non-ASCII characters in the test comments with standard ones. I've verified the changes locally by running the inspect tool and the find_first_of unit tests, and everything is now passing. Thanks for the review! |
|
It appears GitHub automatically closed this PR because, after rebasing and applying the requested inspect fixes, the branch became identical to master (as the changes were already integrated via #7163). Since the fix and the coding standard improvements are now live in the repository, this PR is indeed redundant. Thank you for the guidance! |
Signed-off-by: Aneek22112007 <das.aneek007@gmail.com>
3a4fd6c to
346ad43
Compare
Summary
Fixes a correctness/consistency bug in parallel
find_first_ofand a compilation error in its SIMD implementation.1. The Core Bug (Parallel Partition)
In
libs/core/algorithms/include/hpx/parallel/algorithms/detail/find.hpp, the inner search loop over needles did not short-circuit.2. SIMD (datapar) Fix
Fixed a bug in
libs/core/algorithms/include/hpx/parallel/datapar/find.hppwhere the code usedit + idx, which would fail to compile for non-random-access iterators (likestd::forward_list). Now correctly uses the value and index provided by the loop utility.3. Coding Standards (
inspect)#include <atomic>infindfirstof_tests.hpp.→) in comments with standard ASCII (->) to satisfy theinspecttool.Testing
Updated
find_first_of_edge_cases_test()to verify:inspectclean.