Subject: OpenMPI + mpi4py broken: rank=0

From: Antero Mejr <[email-masked]>
Date: Sun, 06 Oct 2024 01:01:33 +0000

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.