<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Geoffrey,</div><div><br></div><div>You may need to build an mpi-capable python interpreter by hand. See: <a href="http://mpi4py.scipy.org/docs/usrman/appendix.html#mpi-enabled-python-interpreter">http://mpi4py.scipy.org/docs/usrman/appendix.html#mpi-enabled-python-interpreter</a></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Nathan Goldbaum<br>Graduate Student<br>Astronomy & Astrophysics, UCSC<br><a href="mailto:goldbaum@ucolick.org">goldbaum@ucolick.org</a><br>http://www.ucolick.org/~goldbaum</div></span></div></span></div>
</div>
<br><div><div>On Mar 16, 2012, at 4:37 PM, Geoffrey So wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi all, I was trying out pobj_demo.py from the workshop to see if I can parallelize my halo analysis script, but I ran into the problem where I see:<div><br></div><div>>mpirun -n 2 python pobj_demo.py --parallel</div><div>
<br></div><div>gives a warning at the end</div><div><br></div><div>yt : [WARNING ] 2012-03-16 16:25:05,445 parallel_objects() is being used when parallel_capable is false. The loop is not being run in parallel. This may not be what was expected.<br>
</div><div><br></div><div>I've done a</div><div>yt instinfo -u and got the latest tip:</div><div><br></div><div><div>052fac826701 (yt) tip</div></div><div><br></div><div>but the problem persists. I've tried printing inside the parallel loops</div>
<div><br></div><div><div>for sto, sp in parallel_objects(spheres, num_procs, storage = my_storage):</div><div> print ytcfg.getint("yt", "__global_parallel_rank")</div><div> sto.result = sp.quantities['TotalQuantity']('CellMass')</div>
<div> sto.result_id = '%4e %4e %4e' % (sp.center[0], sp.center[1],sp.center[2])</div></div><div><br></div><div>and I always get "0", but 20 of them, so I'm guessing that confirms the loop isn't running in parallel, and just runs the 10 spheres serially on 2 processors, so I get double the results.</div>
<div><br></div><div>Am I doing something wrong or missed something?</div><div><br></div><div>From</div><div>G.S.</div><div><br></div><div><br></div>
!DSPAM:10175,4f63cec725372860820662!
_______________________________________________<br>yt-dev mailing list<br><a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org<br><br><br>!DSPAM:10175,4f63cec725372860820662!<br></blockquote></div><br></body></html>