Use dynamic scheduling in ISS keypoint OpenMP loops - #6474
Closed
yurekami wants to merge 2 commits into
Closed
Conversation
Issue PointCloudLibrary#5785 asks for contained checks of OpenMP loops whose per-iteration cost varies with neighbor searches. ISSKeypoint3D still used the default schedule in several such loops, so this change switches those loops to dynamic scheduling and adds a 2-thread regression on the existing ISS boundary-estimation path. Constraint: Keep the PointCloudLibrary#5785 work scoped to one candidate implementation file instead of a repo-wide schedule sweep Rejected: Touching already-dynamic OMP implementations such as normal_3d_omp and shot_omp | no remaining issue value there Confidence: medium Scope-risk: narrow Directive: Revisit the fixed dynamic chunk only with benchmark data; this patch intentionally avoids adding new public tuning knobs Tested: CMake configure under Visual Studio 2022 Build Tools reached OpenMP detection in build-iss Not-tested: keypoints_iss_3d build/run blocked at configure time by missing Eigen3 package config on this machine Signed-off-by: yurekami <yurekami@users.noreply.github.com>
The dynamic-scheduling change for issue PointCloudLibrary#5785 shifts iteration ordering, so the regression should validate the keypoint set rather than a thread-dependent output order. This follow-up canonicalizes the expected keypoints and repeats the 2-thread path enough times to catch flaky ordering-sensitive failures. Constraint: Keep the existing issue PointCloudLibrary#5785 implementation focused on ISS instead of broadening into more scheduler tuning work Rejected: Restore the previous order-sensitive assertions | they can fail even when the dynamic-scheduling fix is correct Confidence: medium Scope-risk: narrow Directive: Parallel ISS tests should compare canonicalized keypoint sets unless the API explicitly guarantees output ordering Tested: git diff --check Not-tested: Native build/run of test_keypoints_iss_3d; local machine is still missing Eigen3 package config for the PCL build Signed-off-by: yurekami <yurekami@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5785
Summary
Testing