Public bug reported:
I am experiencing a behavioral difference going from Ubuntu 22.04 to
Ubuntu 24.04
Package versions:
22.04 - 4.0-3
24.04 - 4.2.0-5build3
Reproduction:
Start either Ubuntu 22.04/24.04 docker container
```
docker run --rm --gpus all --network host -it ubuntu:22.04
apt update -y && apt-install -y libmpich-dev
```
Test program `mpi_test.c`:
```
#include <mpi.h>
#include <stdio.h>
int main(int argc, char** argv) {
MPI_Init(&argc, &argv);
int world_size, world_rank, name_len;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Comm_size(MPI_COMM_WORLD, &world_size);
MPI_Comm_rank(MPI_COMM_WORLD, &world_rank);
MPI_Get_processor_name(processor_name, &name_len);
printf("Hello from rank %d of %d running on %s\n",
world_rank, world_size, processor_name);
MPI_Finalize();
return 0;
}
```
Compiled and ran like:
```
mpicc -o mpi_test mpi_test.c
mpiexec -n 4 ./mpi_test
```
Results in the following behavior:
Ubuntu 22.04:
```
root@gorby:/# mpiexec -n 4 ./mpi_test
Hello from rank 0 of 4 running on gorby
Hello from rank 1 of 4 running on gorby
Hello from rank 2 of 4 running on gorby
Hello from rank 3 of 4 running on gorby
```
Ubuntu 24.04:
```
root@gorby:/# mpiexec -n 4 ./mpi_test
Hello from rank 0 of 1 running on gorby
Hello from rank 0 of 1 running on gorby
Hello from rank 0 of 1 running on gorby
Hello from rank 0 of 1 running on gorby
```
** Affects: mpich (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2123851
Title:
mpich works differently when changing from Ubuntu 22.04 -> 24.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mpich/+bug/2123851/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs