Skip to content

Bugfix: Update mpirun options for Open MPI 5 compatibility - #896

Open
WenqingLan1 wants to merge 1 commit into
mainfrom
wenqinglan/mpi-double-dash
Open

WenqingLan1 wants to merge 1 commit into
mainfrom
wenqinglan/mpi-double-dash

Conversation

@WenqingLan1

Copy link
Copy Markdown
Contributor

Open MPI 5 (PRRTE-based mpirun) no longer accepts single-dash long options such as -bind-to and -map-by; e.g. "-bind-to numa" makes prterun treat "numa" as the executable. Switch the mpi mode command to the canonical --tag-output, --allow-run-as-root, --host, --hostfile, --map-by, --bind-to and --mca spellings, which Open MPI 4.x also accepts. -x is a real short option and unchanged.

…lity

Open MPI 5 (PRRTE-based mpirun) no longer accepts single-dash long options
such as -bind-to and -map-by; e.g. "-bind-to numa" makes prterun treat
"numa" as the executable. Switch the mpi mode command to the canonical
--tag-output, --allow-run-as-root, --host, --hostfile, --map-by, --bind-to
and --mca spellings, which Open MPI 4.x also accepts. -x is a real short
option and is unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@WenqingLan1
WenqingLan1 requested a review from a team as a code owner November 9, 2026 22:50
Copilot AI balanced review requested due to automatic review settings November 9, 2026 22:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain in the MPI option-spelling changes and corresponding test expectations.

No open issues 🎉

What changed in this PR

Updates MPI-mode command generation to use canonical long-option spellings for Open MPI 5 compatibility while retaining compatibility with Open MPI 4.x.

Changes:

  • Replaces single-dash long options with double-dash forms, leaving -x unchanged.
  • Updates command expectations in runner tests for hostfile, localhost, explicit hosts, and MCA options.
File Description
tests/​runner/​test_runner.py Updates expected MPI commands to use double-dash long options.
superbench/​runner/​runner.py Uses canonical long options when constructing MPI-mode commands.

Review effort: Balanced

@codecov

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.36%. Comparing base (9142bdf) to head (e74a121).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #896   +/-   ##
=======================================
  Coverage   86.36%   86.36%           
=======================================
  Files         107      107           
  Lines        8258     8258           
=======================================
  Hits         7132     7132           
  Misses       1126     1126           
Flag Coverage Δ
cpu-python3.12-unit-test 71.95% <ø> (ø)
cpu-python3.7-unit-test 71.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
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.

2 participants