GNU bug report logs -
#73649
OpenMPI + mpi4py broken: rank=0
Previous Next
To reply to this bug, email your comments to 73649 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#73649
; Package
guix
.
(Sun, 06 Oct 2024 01:02:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Antero Mejr <mail <at> antr.me>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sun, 06 Oct 2024 01:02:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Running this command:
guix shell python python-mpi4py openmpi -- mpirun -n 12 python3 \
-c "from mpi4py import MPI; comm = MPI.COMM_WORLD;
print(comm.Get_rank())"
should print the numbers 0-11. Instead it prints 0 11 times. The same
behavior occurs in a container or pure environment.
This breaks any code using mpi4py, because ranks >0 must be available
for multi-threaded code to work.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#73649
; Package
guix
.
(Tue, 10 Dec 2024 13:04:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 73649 <at> debbugs.gnu.org (full text, mbox):
The issue seems that openmpi is version 5.x but mpi4py is compiled against version 4.x. You can get a consistent version by using this flag: --with-input=openmpi=openmpi <at> 4.1.6. I could fix the issue with this call:
guix shell python python-mpi4py openmpi \
--with-input=openmpi=openmpi <at> 4.1.6 -- \
mpirun -n 12 python3 ...
Information forwarded
to
bug-guix <at> gnu.org
:
bug#73649
; Package
guix
.
(Wed, 11 Dec 2024 23:36:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 73649 <at> debbugs.gnu.org (full text, mbox):
Lars Bilke <lars.bilke <at> ufz.de> writes:
> The issue seems that openmpi is version 5.x but mpi4py is compiled against
> version 4.x.
That does fix it, thanks. Maybe packages built against MPI 4.x should
be upgraded to the default MPI version, because the docs say:
"The Open MPI v5.0.x series shared libraries are ABI compatible with
Open MPI v4.0.x and v4.1.x, with a few exceptions for Fortran."
https://docs.open-mpi.org/en/v5.0.x/version-numbering.html
This bug report was last modified 192 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.