Skip to content

Commit fd59b2c

Browse files
committed
Use MPICH instead of OpenMPI
Possibly a packaging bug in Ubuntu 26.04 with OpenMPI: $ mpirun --version -------------------------------------------------------------------------- Sorry! You were supposed to get help about: version But I couldn't open the help file: /usr/lib/x86_64-linux-gnu/pmix2/share/pmix/help-schizo-ompi.txt: No such file or directory /usr/lib/x86_64-linux-gnu/prrte3/share/prte/help-schizo-ompi.txt: No such file or directory. Sorry! --------------------------------------------------------------------------
1 parent 0eafe13 commit fd59b2c

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

scripts/collect_metadata.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,17 @@ def get_env_vars() -> dict:
5454

5555

5656
def get_mpi_version() -> str:
57-
"""Get MPI version from ompi_info."""
57+
"""Get MPI version string from mpirun."""
5858
try:
59-
return subprocess.check_output(
60-
["ompi_info", "--version"],
59+
output = subprocess.check_output(
60+
["mpirun", "--version"],
6161
stderr=subprocess.STDOUT,
6262
text=True,
63-
).splitlines()[0].strip()
63+
)
64+
for line in output.splitlines():
65+
if "Version:" in line:
66+
return line.split(":", 1)[1].strip()
67+
return output.splitlines()[0].strip()
6468
except Exception:
6569
return "unknown"
6670

scripts/setup_ami.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
1414
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
1515
build-essential g++ gfortran cmake git wget jq \
1616
python${PYVER} python${PYVER}-venv python${PYVER}-dev python3-pip \
17-
openmpi-bin libopenmpi-dev libhdf5-openmpi-dev libpng-dev libpugixml-dev \
17+
mpich libmpich-dev libhdf5-mpich-dev libpng-dev libpugixml-dev \
1818
libfmt-dev libeigen3-dev libnetcdf-dev libtbb-dev numactl libembree-dev time
1919

2020
sudo mkdir -p ${TOOLS_VENV}

0 commit comments

Comments
 (0)