Parallel MD - #7812
Open
19hello wants to merge 10 commits into
Open
Conversation
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.
Reminder
AGENTS.mdanddocs/developers_guide/agent_governance.md.source/changes.Linked Issue
N/A. This is PR3 of the parallel-MD series, following the merged distributed MDCell infrastructure from #7768.
Unit Tests and/or Case Tests for my changes
cmake --build /tmp/abacus-pr3-full -j4 --target abacus_basic_para MODULE_MD_LJ_pot MODULE_IO_input_test_paraenv LD_PRELOAD=/usr/lib/x86_64-linux-gnu/openblas-openmp/libopenblas.so.0 ctest --test-dir /tmp/abacus-pr3-full -R '^(MODULE_IO_input_test_para|MODULE_MD_LJ_pot)$' --output-on-failureenv OMP_NUM_THREADS=1 LD_PRELOAD=/usr/lib/x86_64-linux-gnu/openblas-openmp/libopenblas.so.0 bash ../integrate/Autotest.sh -a /tmp/abacus-pr3- full/abacus_basic_para -n 4 -r '^(01_LJ_Anderson|04_LJ_Langevin)$'python3 tools/03_code_analysis/agent_governance_check.py --stagedMODULE_IO_input_test_paraandMODULE_MD_LJ_potpassed.md_out_force=0,md_dumpfreq=0, andmd_restartfreq=0suppressTOTAL-FORCE,MD_dump,STRU_MD_*, andRestart_md.txtwithout affecting MD execution.the two validated reference files.
What's changed?
UnitCellfor the nativepath.
TOTAL-FORCEoutput to rank 0 without allocating a global force array.md_out_force(defaulttrue) to control the MDCellTOTAL-FORCEtable inrunning_md.log.md_dumpfreq=0to disableMD_dump, andmd_restartfreq=0to disableSTRU_MD_*andRestart_md.txt.Governance Notes
md_out_force.md_dumpfreqandmd_restartfreq.md_seeddocumentation to describe rank-local seeding.source_cell: adds and maintains distributedMDCellstate, STRU reading, migration, and distributed output.source_md: drives MD directly onMDCell; MD depends on IO only for existing parameter and output facilities.source_esolver: LJ, DP, and NEP provide native MDCell force/stress/cutoff support.GlobalV::ofs_runninguse in the MD-to-IO force-output call follows the existing output API; the relocation reduces ratherthan increases the PR-level global dependency count.