Skip to content

Commit b8f89bd

Browse files
committed
fix(coverage-build): add mpiexec as fallback MPI launcher between mpirun and srun
1 parent d208a03 commit b8f89bd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

toolchain/mfc/test/coverage_build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,12 @@ def _run_single_test_direct(test_info: dict, gcda_dir: str, strip: str) -> tuple
282282
# Use --bind-to none to avoid binding issues with concurrent launches.
283283
if shutil.which("mpirun"):
284284
mpi_cmd = ["mpirun", "--bind-to", "none", "-np", str(ppn)]
285+
elif shutil.which("mpiexec"):
286+
mpi_cmd = ["mpiexec", "-n", str(ppn)]
285287
elif shutil.which("srun"):
286288
mpi_cmd = ["srun", "--ntasks", str(ppn)]
287289
else:
288-
raise MFCException("No MPI launcher found (mpirun or srun). MFC binaries require an MPI launcher.\n On Ubuntu: sudo apt install openmpi-bin\n On macOS: brew install open-mpi")
290+
raise MFCException("No MPI launcher found (mpirun, mpiexec, or srun). MFC binaries require an MPI launcher.\n On Ubuntu: sudo apt install openmpi-bin\n On macOS: brew install open-mpi")
289291

290292
failures = []
291293
for target_name, bin_path in binaries:

0 commit comments

Comments
 (0)