<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">And also the output file for MPI 2
      processes...<br>
      <br>
      <div class="moz-signature">Yves Rogez<br>
        <br>
        <b>IPAG</b><br>
        <em>Institut de Plan&eacute;tologie et d'Astrophysique de Grenoble </em><br>
        <font size="2">Bat D de Physique - BP. 53 - 38041 Grenoble -
          FRANCE<br>
          <br>
        </font>
        tel : +33 (0)4 76 63 52 80<br>
        lab : +33 (0)4 76 63 52 89<br>
      </div>
      Le 15/01/2013 16:25, Utkarsh Ayachit a &eacute;crit&nbsp;:<br>
    </div>
    <blockquote
cite="mid:CADHSJjCWUVjKVGi8XHg-UnO26s21Kjxg83Di6d35nLUxTn4NLQ@mail.gmail.com"
      type="cite">
      <pre wrap="">Just to make sure, your ParaView is built with MPI support enabled,
right? XMLMultiBlockDataReader does distribute the blocks to read
among the processes. Try apply a "ProcessIdScalars" filter in the
middle and then look at the ProcessId assigned to the blocks in the
data. They should show how the blocks were distributed.

Utkarsh

On Tue, Jan 15, 2013 at 7:20 AM, Yves Rogez
<a class="moz-txt-link-rfc2396E" href="mailto:yves.rogez@obs.ujf-grenoble.fr">&lt;yves.rogez@obs.ujf-grenoble.fr&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hello,

I'm trying to parallelize a process using pvbatch and MPI, with MultiBlock
data set; thus using the vtk composite pipeline.
I made a sample python program that is representative of what I have to do :

--------------------------------------------------------------------------------------------------

from paraview.simple import *

r = servermanager.sources.XMLMultiBlockDataReader()
r.FileName = "input.vtm"

# Defining a sample fake data processing
nbTs = 1000
ts = {}
for tIndex in range( 0, nbTs ):
    ts[tIndex] = servermanager.filters.Transform()
    if tIndex == 0:
        ts[tIndex].Input = r
    else:
        ts[tIndex].Input = ts[tIndex - 1]
    ts[tIndex].Transform.Scale = [1.01,1.01,1.01]

w = servermanager.writers.XMLMultiBlockDataWriter()
w.Input = ts[nbTs - 1]
w.FileName = "output.vtm"

w.UpdatePipeline()

--------------------------------------------------------------------------------------------------

I launch that using "mpiexec -np 4 pvbatch myscript.py"
All run well but I get a longer time using MPI than using only "pvbatch
myscript.py".

By monitoring RAM, I noticed that it seems the data is loaded on time by MPI
process, and (maybe) all the MPI processes do exactly the same job,
computing four times all the data.

Why my blocks in MultiBlock data set aren't dispatched over the MPI
processes ?
What am I doing wrong ?

Many thanks for any help,

Yves

_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at:
<a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a>

</pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>