* bug#73649: OpenMPI + mpi4py broken: rank=0
@ 2024-10-06 1:01 Antero Mejr
2024-12-10 13:03 ` Lars Bilke
0 siblings, 1 reply; 3+ messages in thread
From: Antero Mejr @ 2024-10-06 1:01 UTC (permalink / raw)
To: 73649
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#73649: OpenMPI + mpi4py broken: rank=0
2024-10-06 1:01 bug#73649: OpenMPI + mpi4py broken: rank=0 Antero Mejr
@ 2024-12-10 13:03 ` Lars Bilke
2024-12-11 23:35 ` Antero Mejr
0 siblings, 1 reply; 3+ messages in thread
From: Lars Bilke @ 2024-12-10 13:03 UTC (permalink / raw)
To: mail; +Cc: 73649
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@4.1.6. I could fix the issue with this call:
guix shell python python-mpi4py openmpi \
--with-input=openmpi=openmpi@4.1.6 -- \
mpirun -n 12 python3 ...
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#73649: OpenMPI + mpi4py broken: rank=0
2024-12-10 13:03 ` Lars Bilke
@ 2024-12-11 23:35 ` Antero Mejr
0 siblings, 0 replies; 3+ messages in thread
From: Antero Mejr @ 2024-12-11 23:35 UTC (permalink / raw)
To: Lars Bilke; +Cc: 73649
Lars Bilke <lars.bilke@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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-11 23:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-06 1:01 bug#73649: OpenMPI + mpi4py broken: rank=0 Antero Mejr
2024-12-10 13:03 ` Lars Bilke
2024-12-11 23:35 ` Antero Mejr
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).