-
Notifications
You must be signed in to change notification settings - Fork 516
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
fix:fix LAMMPS MPI tests with mpi4py 4.0.0 #4032
Conversation
Signed-off-by: Jinzhe Zeng <[email protected]>
WalkthroughWalkthroughThe recent changes optimize the evaluation of potential energy ( Changes
Sequence Diagram(s)sequenceDiagram
participant Master as Rank 0
participant Workers as Other Ranks
participant FileSystem as File Operations
Workers->>Master: Request for potential energy (pe)
Master->>Master: Calculate potential energy (pe)
Master->>FileSystem: Save potential energy (pe)
Master-->>Workers: Notify completion
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## devel #4032 +/- ##
=======================================
Coverage 82.93% 82.93%
=======================================
Files 522 522
Lines 51036 51036
Branches 3028 3028
=======================================
+ Hits 42325 42327 +2
- Misses 7762 7764 +2
+ Partials 949 945 -4 ☔ View full report in Codecov by Sentry. |
I submit to lammps/lammps#4249 |
The previous code works with mpi4py<4 but fails with mpi4py 4.0.0. I don't know what breaking change was made. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Optimized potential energy calculation in the LAMMPS simulation by restricting evaluation to the master process, reducing unnecessary computations. - **Chores** - Improved control flow for better performance in parallel execution contexts. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <[email protected]>
The previous code works with mpi4py<4 but fails with mpi4py 4.0.0. I don't know what breaking change was made. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Optimized potential energy calculation in the LAMMPS simulation by restricting evaluation to the master process, reducing unnecessary computations. - **Chores** - Improved control flow for better performance in parallel execution contexts. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <[email protected]> (cherry picked from commit 1e72236)
The previous code works with mpi4py<4 but fails with mpi4py 4.0.0. I don't know what breaking change was made. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Optimized potential energy calculation in the LAMMPS simulation by restricting evaluation to the master process, reducing unnecessary computations. - **Chores** - Improved control flow for better performance in parallel execution contexts. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <[email protected]> (cherry picked from commit 1e72236)
The previous code works with mpi4py<4 but fails with mpi4py 4.0.0. I don't know what breaking change was made.
Summary by CodeRabbit
Bug Fixes
Chores