espressomd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ESPResSo-users] mpirun runs python script in parallel


From: Rudolf Weeber
Subject: Re: [ESPResSo-users] mpirun runs python script in parallel
Date: Sun, 3 Mar 2019 11:28:07 +0100
User-agent: Mutt/1.9.4 (2018-02-28)

Hi Andreas,
On Thu, Feb 28, 2019 at 03:29:21PM +0100, Andreas Härtel wrote:
> Dear ESPResSo list,
> 
> ESPResSo has been running fine for me: calling
>  mpirun -n 4 pypresso <script>
> always resulted in running the python script on a single core and only
> internally running ESPResSo in parallel.
> 
> Then I updated anaconda2 using
>  conda install mpi4py
> and afterwards the above command was running my python script in parallel: I
> removed the mpi4pi module using conda uninstall, but the problem remained.
> Even after remaking and rebuilding ESPResSo.
> 
> I cannot see where something is going wrong:
> does anyone has an idea?
Did you use the same script?

Generally speaking, mpirun pypresso script.py
runs script.py multiple times. The coupling only happens at the time you 
instance the System class
via
s=espressomd.System(...)
So, as a first step you might try to move that call to the top of your script.

Regards, Rudolf





reply via email to

[Prev in Thread] Current Thread [Next in Thread]