Skip to content

Remove --mpi from restart related code.#1231

Merged
xuyao0127 merged 1 commit intodmtcp:mainfrom
xuyao0127:mpi_restart
Jan 9, 2026
Merged

Remove --mpi from restart related code.#1231
xuyao0127 merged 1 commit intodmtcp:mainfrom
xuyao0127:mpi_restart

Conversation

@xuyao0127
Copy link
Copy Markdown
Collaborator

@xuyao0127 xuyao0127 commented Jan 9, 2026

MANA uses its kernel-loader to restart. So the --mpi flag in DMTCP is deprecated.

Summary by CodeRabbit

  • Bug Fixes
    • Removed MPI proxy option (--mpi flag) from the restart command-line interface and its associated argument processing, simplifying restart behavior by discontinuing MPI-specific handling.

✏️ Tip: You can customize this high-level summary in your review settings.

@xuyao0127 xuyao0127 requested review from Copilot, gc00 and karya0 January 9, 2026 18:29
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jan 9, 2026

📝 Walkthrough

Walkthrough

This pull request removes MPI-related command-line option handling from two restart utility files. Specifically, the --mpi flag is deleted from the restart interface, eliminating MPI proxy and MPI mode configuration logic in both the DMTCP restart internal module and the MTCP restart process arguments handler.

Changes

Cohort / File(s) Change Summary
MPI flag removal
src/dmtcprestartinternal.cpp, src/mtcp/mtcp_restart.c
Removes --mpi command-line option and all associated parsing logic. Deletes usage documentation text, the conditional branch handling MPI mode configuration (runMpiProxy, rinfo.mpiMode), and MPI-specific checkpoint image argument processing.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested labels

enhancement

Suggested reviewers

  • karya0
  • gc00

Poem

🐰 A flag once passed for modes MPI,
Now fades away with sweet goodbye,
Two files cleaned, the code runs light,
Restart flows smooth—ahhhh, what a sight! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately describes the primary change: removal of the --mpi flag from restart-related code across two files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f0aca5b and 220c095.

📒 Files selected for processing (2)
  • src/dmtcprestartinternal.cpp
  • src/mtcp/mtcp_restart.c
💤 Files with no reviewable changes (2)
  • src/mtcp/mtcp_restart.c
  • src/dmtcprestartinternal.cpp
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the deprecated --mpi flag from DMTCP restart-related code, as MANA now uses its kernel-loader for restart functionality instead. The changes include a version bump from 4.0.0 to 4.1.0 and updated release notes.

Key changes:

  • Removal of --mpi flag handling from restart argument parsing in both mtcp_restart and dmtcp_restart
  • Version bump to 4.1.0 with accompanying updates to configure scripts
  • Addition of release notes documenting new features in version 4.1.0

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/mtcp/mtcp_restart.c Removed --mpi flag parsing and associated mpiMode logic from restart process argument handling
src/dmtcprestartinternal.cpp Removed --mpi flag from usage documentation and argument parsing, eliminating runMpiProxy variable assignment
configure.ac Updated AC_INIT formatting to single line, bumped AC_PREREQ to 2.72
configure Regenerated configure script reflecting version 4.1.0 and autoconf 2.72 updates
VERSION Bumped version from 4.0.0 to 4.1.0
NEWS Added release notes for version 4.1.0 with feature highlights and bug fixes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@gc00 gc00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xuyao0127 xuyao0127 merged commit f19407f into dmtcp:main Jan 9, 2026
2 checks passed
@xuyao0127 xuyao0127 deleted the mpi_restart branch January 9, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants