pyiron / pylammpsmpi

Parallel Lammps Python interface - control a mpi4py parallel LAMMPS instance from a serial python process or a Jupyter notebook
https://pylammpsmpi.readthedocs.io
BSD 3-Clause "New" or "Revised" License
30 stars 4 forks source link

Use `oversubscribe` option only for Dask clusters #78

Closed srmnitc closed 2 years ago

srmnitc commented 2 years ago

The MPI run command uses oversubscribe option which is only useful if Dask clusters are used. However, this option fails with mpich. I added a small workaround, which only uses this option if a Dask cluster is used.

This fix could be the solution for this and this.

@niklassiemer Could you please help with the tag for black formatting?

niklassiemer commented 2 years ago

Sure, I completely forgot to push that tag and workflow to all repos.

jan-janssen commented 2 years ago

The MPI run command uses oversubscribe option which is only useful if Dask clusters are used. However, this option fails with mpich. I added a small workaround, which only uses this option if a Dask cluster is used.

To my knowledge the whole trick of communicating via stdin and stdout only works with OpenMPI but not mpich. At least for large structures - that is why I did not care about mpich support so far.

srmnitc commented 2 years ago

I was not aware of this; then there is really need for this change. I will run a few more tests before we go ahead and close it.

jan-janssen commented 2 years ago

I was not aware of this; then there is really need for this change. I will run a few more tests before we go ahead and close it.

As I see no progress on this pull request I close it now. Feel free to re-open it.