-
-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapt simd adj diff #5580
Adapt simd adj diff #5580
Conversation
Moves sequential implementation of adjacent_difference to detail which enables overload for simd policy.
Replaces use of std minus with generic lambda which enables minus operations with data parallel types.
Adds new header in datapar for adjacent difference algorithm. Adds the new header in CMakeLists.txt and datapar.hpp.
Splits the existing adjacent_difference into header and source files. Merges execption and bad alloc tests into one header and source.
Adds adjacent difference datapar unit test source file.
libs/core/algorithms/include/hpx/parallel/algorithms/adjacent_difference.hpp
Outdated
Show resolved
Hide resolved
libs/core/algorithms/include/hpx/parallel/datapar/adjacent_difference.hpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks!
libs/core/algorithms/tests/unit/datapar_algorithms/adjacentdifference_datapar.cpp
Outdated
Show resolved
Hide resolved
libs/core/algorithms/tests/unit/datapar_algorithms/adjacentdifference_datapar.cpp
Outdated
Show resolved
Hide resolved
@srinivasyadav18 could you have a look at these please: https://cdash.cscs.ch/viewBuildError.php?buildid=185806. That's GCC 11 with C++20, if it makes a difference (I think it has more tests enabled because of that). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Contributes to fixing #2333
Proposed Changes