Skip to content

Runner - Use double-dash mpirun options for Open MPI 5 - #871

Closed
Nguyen Vuong (normanvuong) wants to merge 1 commit into
microsoft:mainfrom
normanvuong:nguyenvuong/mpirun_double_dash
Closed

Nguyen Vuong (normanvuong) wants to merge 1 commit into
microsoft:mainfrom
normanvuong:nguyenvuong/mpirun_double_dash

Conversation

@normanvuong

Copy link
Copy Markdown

Description
On MI455X with the ROCm 10 image (#867), which ships DOCA Open MPI 5.0.10, mpi-mode benchmarks fail at launch because the runner passes single-dash long options (-bind-to numa, etc.) to mpirun. Open MPI 5's launcher, PRRTE, only documents double-dash long options. Open MPI 4.1 accepts both forms, so switching to double dashes keeps existing images working.

Major Revision

  • mpi mode now launches with --tag-output, --allow-run-as-root, --host/--hostfile, --map-by, --bind-to and --mca. -x is a single-character option and is unchanged.

Minor Revision

  • Update the expected mpirun commands in tests/runner/test_runner.py.

Notes:

  • --tag-output is deprecated in Open MPI 5 in favor of --output tag and prints a warning there. It is kept because Open MPI 4 has no --output tag.

Open MPI 5 (PRRTE) rejects or warns on single-dash long options such as
-bind-to; Open MPI 4 accepts both forms. Switch the mpi mode command to
--tag-output, --allow-run-as-root, --host, --hostfile, --map-by, --bind-to
and --mca. -x is a single-character option and is unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 12, 2026 17:48
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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

The focused option changes are consistent, compatible with supported Open MPI versions, and covered by existing command-generation tests.

0 open findings

What changed in this PR

Updates MPI-mode launches for Open MPI 5 compatibility while retaining Open MPI 4 support.

Changes:

  • Converts long mpirun options to double-dash forms.
  • Updates command-generation test expectations.
File Description
superbench/​runner/​runner.py Generates Open MPI-compatible double-dash options.
tests/​runner/​test_runner.py Updates expected MPI launch commands.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@normanvuong

Copy link
Copy Markdown
Author

same fix has been merged with #896

@normanvuong

Copy link
Copy Markdown
Author

same fix has been merged with #896

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