← Back to team overview

yade-mpi team mailing list archive

Re: mpi interactivity


Hi there,
We approach full interactivity and it will make things much more flexible.
It is now possible to execute mpirun(n,N) in an ordinary script executed
with yade [1].
It will spawn a pool of N-1 workers which will work together with initial
(master) process.
After mpirun we are back to ip shell and Qt windows.

A unique feature of the interactive mode is that it lets instructions be
sent to individual workers.
It is therefore possible to get values from subdmain and virtually achieve
complex tasks.
An exemple at the end of [1], which can also be typed in the python prompt
after running the script:

k=O.subD.comm.recv(source=1); print("Ek="+str(k))

We can certainly encapsulate this long thing in a function. ;)



On Thu, 13 Jun 2019 at 23:34, Bruno Chareyre <bruno.chareyre@xxxxxxxxxxxxxxx>

> On Thu, 13 Jun 2019 at 11:13, Bruno Chareyre <
> bruno.chareyre@xxxxxxxxxxxxxxx> wrote:
>>  the idea of full interactivity combined with mpi execution is chimeric.
> Maybe not.
> The attached script spawn mpi runners on the fly and send scene to them,
> in a very simple way.
> Just run it with yade (compiled with mpi support), and you'll get qt
> interface as usual.
> Bruno

Bruno Chareyre
Associate Professor
ENSE³ - Grenoble INP
Lab. 3SR
BP 53
38041 Grenoble cedex 9
Tél : +33 4 56 52 86 21

Email too brief?
Here's why: email charter