Repository navigation
refactor(base): remove dead parallel wrappers and migrate legacy test coverage - #8531
Open
MrLi000001 wants to merge 2 commits into
Open
MrLi000001 wants to merge 2 commits into
MrLi000001 wants to merge 2 commits into
Conversation
Keep the original comments of the migrated tests, including the commented-out debug printfs, unchanged except where the removal of the dead wrappers requires it: dropped test entries in the file header, GatherIntAll renamed to ReduceMinAll, and the runner reference updated to unittests/CMakeLists.txt. This keeps the rename diff focused on the actual migration changes. Part of deepmodeling#8524
This branch has not been deployed
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.
Linked Issue
Part of #8524
What's changed?
(verified by repo-wide grep; item 1 of issue parallel codes in ABACUS: refactor plan (in Chinese) #8524):
(last production use vanished years ago)
(last caller removed with the old gint module in Refactor: remove old gint module code #6635)
(added by Feature: rework out_app_flag as a three-mode output controller with unified output directories, append semantics, and provenance headers #8159, its only caller removed by Refactor MD structure, restart, and thermodynamic output #8375)
test_parallel/parallel_reduce_test.cpp (582 lines) and
test_parallel/parallel_common_test.cpp (154 lines) into
unittests/test_parallel_reduce.cpp and unittests/test_parallel_common.cpp,
per the governance rule that touched legacy tests must move to unittests/.
The legacy files are deleted (allowed) and the legacy CMakeLists.txt is
trimmed accordingly; MODULE_BASE_ParaGlobal is untouched.
wrappers (reduce_all/pool/min/max, reduce_double_allpool,
reduce_min_pool/max_pool, all bcast_*) is preserved. In the migrated
ReduceMinAll test the dead gather_int_all call is replaced with a raw
MPI_Allgather so the original cross-rank assertions survive.
MODULE_BASE_parallel_common (mpirun -np 3) are registered in
unittests/CMakeLists.txt, mirroring the existing
MODULE_BASE_parallel_shared_memory registration pattern.
no remaining code references the removed symbols (grep-verified).