Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPICH -- mpi returns myrank = 0 for all processors #7064

Open
cjoycd opened this issue Jul 14, 2024 · 6 comments
Open

MPICH -- mpi returns myrank = 0 for all processors #7064

cjoycd opened this issue Jul 14, 2024 · 6 comments

Comments

@cjoycd
Copy link

cjoycd commented Jul 14, 2024

MPICH has been installed in Kubuntu 24.04 LTS as below

sudo apt-get update,
sudo apt install build-essential,
sudo apt install mpich libmpich-dev

After installation, with a simple test code it fails to return correct rank values for each processors (all have zero rank). Only MPICH is being installed, no other MPI such openMPI is working in parallel. How to fix the issue? Any suggestions?

@hzhou
Copy link
Contributor

hzhou commented Aug 21, 2024

Sorry for the neglect. The issue is due to running mpiexec from Open MPI. The ubuntu default to use openMPI for dependency, so it is easy for them to mess this up.

@cjoycd
Copy link
Author

cjoycd commented Aug 21, 2024 via email

@hzhou
Copy link
Contributor

hzhou commented Aug 21, 2024

Just tested ubuntu 24.04 using docker. Indeed it is broken. The issue is they build mpich with --with-pmix=/usr/lib/x86_64-linux-gnu/pmix2, which forces to disable hydra's launch, and need to be launched with openpmix or openmpi's launcher instead. We need reach out to the package maintainer to fix this.

@cjoycd
Copy link
Author

cjoycd commented Aug 21, 2024 via email

@raffenet
Copy link
Contributor

FYI we were informed that the configuration issue would be fixed in the next update to the mpich package. https://bugs.launchpad.net/ubuntu/+source/mpich/+bug/2072338. I have not yet seen the update in the package repos, though.

@cjoycd
Copy link
Author

cjoycd commented Sep 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants