Hi everyone, <div><br></div><div>I've been playing with using ipython parallel in mpi mode. On my laptop it's working swell but on a different machine I can't get the ipengines to be part of the same MPI world. </div>
<div><br></div><div>I.e. after setting up either an ipcluster or ipcontroller + ipengine I run the following in python</div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">from IPython.parallel import Client</font></div>
<div><div><font class="Apple-style-span" face="'courier new', monospace">rc = Client() #profile='mpi')</font></div><div><font class="Apple-style-span" face="'courier new', monospace">view = rc[:]</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">view.execute('from mpi4py import MPI')</font></div><div><font class="Apple-style-span" face="'courier new', monospace">view.execute('comm = MPI.COMM_WORLD')</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">view.execute('rank = comm.Get_rank()')</font></div><div><font class="Apple-style-span" face="'courier new', monospace">print view['rank']</font></div>
</div><div><br></div><div>and get out a list of zeros, each of the engines is inside of its own mpi world. </div><div><br></div><div>I set up the cluster either by using </div><div><font class="Apple-style-span" face="'courier new', monospace">ipcluster start --n 4 --engines=MPI --controller=MPI</font></div>
<div>or </div><div><font class="Apple-style-span" face="'courier new', monospace">ipcluster start --n 4 --profile=mpi # config files set up as in the tutorial</font></div><div><br></div><div>or directly using ipcontroller and ipengines</div>
<div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">ipcontroller --profile=mpi</font></div><div><font class="Apple-style-span" face="'courier new', monospace">mpiexec --np 4 ipengine --profile=mpi</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div>I'm using ubuntu with the ipython that is packaged in the enthought distribution and linking to openmpi. </div><div><br>
</div><div>Any thoughts on common mistakes I could be making?</div><div><br></div><div>-Matt</div>