-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
I have been using mpi4py with the image fedora:37 for a while without issues. However, with fedora:38 (and later) I see the following error:
I build the following image via docker build -t fedora_test -f docker/fedora.dockerfile .:
# docker/fedora.dockerfile
FROM fedora:38
RUN dnf install -y python3-pip \
&& dnf install -y gcc \
&& dnf install -y gfortran \
&& dnf install -y blas-devel lapack-devel \
&& dnf install -y openmpi openmpi-devel \
&& dnf install -y libgomp \
&& dnf install -y git \
&& dnf install -y environment-modules \
&& dnf install -y python3-mpi4py-openmpi \
&& dnf install -y python3-devel
then run a container with docker run -it fedora_test and load the openmpi module
module load mpi/openmpi-x86_64
I then launch a Python virtual environment
python3 -m venv env
source env/bin/activate
and install mpi4py:
pip install mpi4py
Upon launching python3 and importing MPI from mpi4py, I get the following error:
Python 3.11.5 (main, Aug 28 2023, 00:00:00) [GCC 13.2.1 20230728 (Red Hat 13.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from mpi4py import MPI
64ad81b28a4c:pid259.python3: Failed to get eth0 (unit 0) cpu set
64ad81b28a4c:pid259: PSM3 can't open nic unit: 0 (err=23)
PMIx Log Report:[259]: (nic/PSM)[259]: PSM3 can't open nic unit: 0 (err=23)
64ad81b28a4c:pid259.python3: Failed to get eth0 (unit 0) cpu set
64ad81b28a4c:pid259: PSM3 can't open nic unit: 0 (err=23)
PMIx Log Report:[259]: (nic/PSM)[259]: PSM3 can't open nic unit: 0 (err=23)
The program is stuck from there on. All of the above steps work fine with the image fedora:37.
Here are some infos on my OS:
$ uname -a
Linux ######### 6.2.0-34-generic #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Metadata
Metadata
Assignees
Labels
No labels