I recommend using openmpi.&nbsp; I have been able to build openmpi on multiple platforms and then build mpi4py with it without any customization.&nbsp; As Matt has said, though, you won&#39;t see any benefit to using parallel until your simulations are at least 256^3 cells or more.<br>
<br><div class="gmail_quote">On Thu, Feb 12, 2009 at 8:16 PM, Matthew Turk <span dir="ltr">&lt;<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi again,<br>
<br>
I just realized that I should say a couple important caveats --<br>
<br>
1. We haven&#39;t released &#39;yt-trunk&#39; as 1.5 yet because it&#39;s not quite<br>
done or stable. &nbsp;It&#39;s going well, and many people use it for<br>
production-quality work, but it&#39;s not really stamped-and-completed.<br>
2. I should *also* note that you won&#39;t really get a lot out of<br>
parallel yt unless you have relatively large datasets or relatively<br>
large amounts of computation on each cell while creating a derived<br>
field. &nbsp;It might end up being a bit more work than you&#39;re looking for,<br>
if you just want to get some plots out quickly.<br>
<br>
-Matt<br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, Feb 12, 2009 at 7:12 PM, Matthew Turk &lt;<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>&gt; wrote:<br>
&gt; Hi!<br>
&gt;<br>
&gt; yt-trunk is now parallelized. &nbsp;Not all tasks work in parallel, but<br>
&gt; projections, profiles (if done in &#39;lazy&#39; mode) and halo finding (if<br>
&gt; you use the SS_HopOutput module) are now parallelized. &nbsp;Slices are<br>
&gt; almost done, and the new covering grid will be. &nbsp;It&#39;s not documented,<br>
&gt; but those tasks should all run in parallel. &nbsp;We will be rolling out a<br>
&gt; 1.5 release relatively soon, likely shortly after I defend my thesis<br>
&gt; in April, that will have documentation and so forth.<br>
&gt;<br>
&gt; I&#39;m surprised you can&#39;t compile against the mpich libraries in a<br>
&gt; shared fashion. &nbsp;Unfortunately, I&#39;m not an expert on MPI<br>
&gt; implementations, so I can&#39;t quite help out there. &nbsp;In my personal<br>
&gt; experience, using OpenMPI, I have needed to except when running on<br>
&gt; some form of linux without a loader -- the previous discussion about<br>
&gt; this was related to Kraken, which runs a Cray-specific form of linux<br>
&gt; called &quot;Compute Node Linux.&quot; &nbsp;I don&#39;t actually know offhand (anybody<br>
&gt; else?) of any non-Cray machines at supercomputing out there require<br>
&gt; static linking as opposed to a standard installation of Python. &nbsp;(I&#39;m<br>
&gt; sure they do, I just don&#39;t know of them!)<br>
&gt;<br>
&gt; As for the second part, usually when instantiating you have to run the<br>
&gt; executable via mpirun. &nbsp;(On other MPI implementations, this could be<br>
&gt; something different.) &nbsp;One option for this -- if you&#39;re running off<br>
&gt; trunk -- would be to do something like:<br>
&gt;<br>
&gt; mpirun -np 4 python my_script.py --parallel<br>
&gt;<br>
&gt; where the file my_script.py has something like:<br>
&gt;<br>
&gt; --<br>
&gt; from yt.mods import *<br>
&gt; pf = EnzoStaticOutput(&quot;my_output&quot;)<br>
&gt; pc = PlotCollection(pf, center=[0.5,0.5,0.5])<br>
&gt; pc.add_projection(&quot;Density&quot;,0)<br>
&gt; pc.save(&quot;hi_there&quot;)<br>
&gt; --<br>
&gt;<br>
&gt; The projection would be executed in parallel, in this case. &nbsp;(There is<br>
&gt; a command line interface called &#39;yt&#39; that also works in parallel, but<br>
&gt; it&#39;s still a bit in flux.) &nbsp;You can&#39;t just run &quot;python&quot; because of the<br>
&gt; way the stdin and stdout streams work; you have to supply a script, so<br>
&gt; that it can proceed without input from the user. &nbsp;(IPython&#39;s parallel<br>
&gt; fanciness notwithstanding, which we do not use in yt.)<br>
&gt;<br>
&gt; But, keep in mind, running &quot;mpirun -np 4&quot; by itself, wihtout setting<br>
&gt; up a means of distributing tasks (usually via a tasklist) will run<br>
&gt; them all on the current machine. &nbsp;I am, unfortunately, not really<br>
&gt; qualified to speak to setting up MPI implementations. &nbsp;But please do<br>
&gt; let us know if you have problems with the yt aspects of this!<br>
&gt;<br>
&gt; -Matt<br>
&gt;<br>
&gt; On Thu, Feb 12, 2009 at 6:59 PM, rsoares &lt;<a href="mailto:dlleuz@xmission.com">dlleuz@xmission.com</a>&gt; wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m trying to run mpi4py on my 4 machines, but I need a parallelized version<br>
&gt;&gt; of Python. Tried to compile one with Python 2.5 and mpich2 but mpich2 won&#39;t<br>
&gt;&gt; let me built dynamic /shares libraries which it needs. &nbsp;Trying with the<br>
&gt;&gt; static ones involves alot of headers errors from both.<br>
&gt;&gt; Is yt-trunk capable of doing python in parallel?<br>
&gt;&gt;<br>
&gt;&gt; Without parallel-python, I mpdboot -n 4 then<br>
&gt;&gt;<br>
&gt;&gt; python<br>
&gt;&gt;&gt;&gt;&gt;import MPI<br>
&gt;&gt;&gt;&gt;&gt; rank, size = MPI.COMM_WORLD.rank, MPI.COMM_WORLD.size<br>
&gt;&gt;&gt;&gt;&gt; print &#39;Hello World! I am process&#39;, rank, &#39;of&#39;, size<br>
&gt;&gt; Hello World! I am process 0 of 1<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; not 4 processes, and &nbsp;mpirun -np 4 python just hangs. &nbsp;mpi4py installed on<br>
&gt;&gt; all 4 nodes.<br>
&gt;&gt;<br>
&gt;&gt; Thanks.<br>
&gt;&gt;<br>
&gt;&gt; R.Soares<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; yt-users mailing list<br>
&gt;&gt; <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
&gt;&gt; <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
&gt;&gt;<br>
&gt;<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br>