<div dir="ltr"><div><div><div><div>Hi Massimiliano,<br><br></div>I don't think the XML unstructured grid reader partitions the data so all of your cells are probably just ending up on process 0. <br><br></div>You may want to look at ParaView's spatio-temporal parallelism (<a href="http://www.paraview.org/Wiki/Spatio-Temporal_Parallelism">http://www.paraview.org/Wiki/Spatio-Temporal_Parallelism</a>). Make sure to use a time compartment size of 1 if you're just using the XML unstructured grid reader.<br><br></div>Regards,<br></div>Andy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 18, 2015 at 6:40 AM, Massimiliano Leoni <span dir="ltr"><<a href="mailto:leoni.massimiliano1@gmail.com" target="_blank">leoni.massimiliano1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:'DejaVu Sans';font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Hi everybody,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">I am trying to run pvbatch in parallel to render an animation, with a very easy script that looks like</p>
<ul style="margin-top:0px;margin-bottom:0px;margin-right:0px"><li style="margin-top:12px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">import sys</li>
<li style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">from paraview.simple import *</li>
<li style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></li>
<li style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"># read pvsm file from command line and load it</li>
<li style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">stateFile = sys.argv[1]</li>
<li style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">simulation = stateFile.split("/")[-1].split(".")[0]</li>
<li style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">servermanager.LoadState(stateFile)</li>
<li style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></li>
<li style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"># set active view and render animation</li>
<li style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">SetActiveView(GetRenderView())</li>
<li style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">WriteAnimation(simulation + ".jpg",magnification=2,quality=2)</li></ul>
<p style="margin-top:12px;margin-bottom:12px;margin-left:0px;margin-right:0px;text-indent:0px">I compiled paraview from sources, configuring with</p>
<p style="margin-top:12px;margin-bottom:12px;margin-left:0px;margin-right:0px;text-indent:0px">cmake -DPARAVIEW_BUILD_QT=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF  -DPARAVIEW_ENABLE_PYTHON=ON -DPARAVIEW_USE_MPI=ON ..</p>
<p style="margin-top:12px;margin-bottom:12px;margin-left:0px;margin-right:0px;text-indent:0px">and then building all.</p>
<p style="margin-top:12px;margin-bottom:12px;margin-left:0px;margin-right:0px;text-indent:0px">I am doing a benchmark on 11GB of data distributed over many pvd/vtu files [written by an MPI application in parallel].</p>
<p style="margin-top:12px;margin-bottom:12px;margin-left:0px;margin-right:0px;text-indent:0px">I copied the data to a tmpfs folder to ensure the execution is not slowed down by disk access.</p>
<p style="margin-top:12px;margin-bottom:12px;margin-left:0px;margin-right:0px;text-indent:0px">Executing pvbatch on 1 or 16 processors doesn't really seem to change anything.<br>In particular, I was expecting to see the frames appearing in blocks of 16 when running with mpi on 16 procs, but they always appear one at a time at a constant pace, which makes me suspect that the other processes aren't really contributing to the rendering.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:12px;margin-bottom:12px;margin-left:0px;margin-right:0px;text-indent:0px">What could I be doing wrong?<br>Any suggestion is highly appreciated.</p>
<p style="margin-top:12px;margin-bottom:12px;margin-left:0px;margin-right:0px;text-indent:0px">Best regards,</p>
<p style="margin-top:12px;margin-bottom:12px;margin-left:0px;margin-right:0px;text-indent:0px">Massimiliano</p></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>