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

/home/janez/.local/lib/python3.9/site-packages/amuse/rfi/core.py:964: UserWarning: MPI (unexpectedly?) not available, falling back to sockets channel #1038

Open
sheliak opened this issue Mar 13, 2024 · 4 comments
Labels
question stale Issues that have been around for a while without updates

Comments

@sheliak
Copy link

sheliak commented Mar 13, 2024

Whatever I run, I get a warning MPI (unexpectedly?) not available, falling back to sockets channel. The program then works fine, but runs on one CPU only. The warning appears regardless of the number of workers specified in functions like Hermite from amuse.community.hermite.interface.

I'm assuming it has something to do with openmpi, but I have no idea how to begin solving this. mpirun command works fine on its own. Any help would be much appreciated. Thanks.

@spzwart
Copy link
Contributor

spzwart commented Mar 13, 2024 via email

@LourensVeen
Copy link
Collaborator

In particular, mpi4py is probably missing from your conda environment. Did you install AMUSE via pip, or did you do a develop install from git as Simon writes above?

@LourensVeen
Copy link
Collaborator

Ah, hold on, I see now that you're not using conda, but have installed AMUSE into your Python user environment. I think pip install mpi4py should then fix the immediate problem regardless of whether it's a PyPI or a development install, assuming that you have a development package for MPI installed.

However, I think there's another problem here in that it only uses a single CPU regardless of the number of workers you specify. As I understand it even if a socket channel is used to communicate with the workers, it should be possible to have more than one of them. I'm not fully up to speed yet on this part of AMUSE though, so I may be mistaken in that expectation.

Copy link

stale bot commented May 12, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 28 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issues that have been around for a while without updates label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question stale Issues that have been around for a while without updates
Projects
None yet
Development

No branches or pull requests

3 participants