<HTML>
<HEAD>
<TITLE>Re: [Paraview] parallel run filter operate on plane source</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Please don’t look at the plane source as an example for parallel processing. The plane source has no parallel processing. The plane source is designed to output a small amount of geometry. Trying to process this in parallel would just add overhead rather than provide any real benefit. If you are going to look at anything, please look at components that are actually designed to work with distributed partitioned data. Most of the sources are not designed this way because they typically generate small geometries. Many of the readers are designed for parallel processing.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 8/10/09 12:34 PM, "Bam Ting" <<a href="bampingting@gmail.com">bampingting@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> I see no logic for this in the plane source. So this is something that happen behind the scene in pipeline execute? I guess it works like this: If a source say by way of key "I produce piece 0 of 1" and he is run in parallel if he is really piece n not 0 of m piece then RequestData is not called on him? I this correct?<BR>
<BR>
Thank you for the help! Appreciate much! <BR>
<BR>
On Mon, Aug 10, 2009 at 6:04 AM, Utkarsh Ayachit <<a href="utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>You are almost correct. The keys don't cause the data to be transfered<BR>
from process 0, but it causes all processes to produce the full plane<BR>
data as if they were being run on a single processes. Trypically,<BR>
UPDATE_NUMBER_OF_PIECES corresponds to the number of processes, while<BR>
UPDATE_PIECE_NUMBER corresponds to the process index. By setting them<BR>
to 1 and 0 respectively, we are telling the source that we want the<BR>
entire dataset, not a piece of it.<BR>
<BR>
Utkarsh<BR>
<BR>
On Fri, Aug 7, 2009 at 4:47 PM, Bam Ting<<a href="bampingting@gmail.com">bampingting@gmail.com</a>> wrote:<BR>
> I look more at how the distribute stream tracer work and learnt that it work<BR>
> by setting: UPDATE_PIECE_NUMBER() to 0 and UPDATE_NUMBER_OF_PIECES to 1.<BR>
> Apparently this cause data from process 0 to be transfer across network to<BR>
> other process. I make a guess here, is that correct?<BR>
><BR>
><BR>
><BR>
> On Fri, Aug 7, 2009 at 12:45 PM, Bam Ting <<a href="bampingting@gmail.com">bampingting@gmail.com</a>> wrote:<BR>
>><BR>
>> Forgive my misconception before! I am baffelt by how this work!<BR>
>><BR>
>> I looked closer. I see plane source on my imput is empty! bounds 1 -1 ...<BR>
>> on all process except 0... so that answer something! before this I suppose<BR>
>> that the source must be duplicate on all process, because the class doc for<BR>
>> vtkPStreamTracer say thaat this must be so. Now I will like to know how does<BR>
>> filter such as distributed stream tracer work in this case (plane source is<BR>
>> empty on all imput except 0)? Web doc day seed points must be the same<BR>
>> across on all process? Can we explain how paraview works here?<BR>
>><BR>
>><BR>
>><BR>
>><BR>
>> On Fri, Aug 7, 2009 at 11:22 AM, Bam Ting <<a href="bampingting@gmail.com">bampingting@gmail.com</a>> wrote:<BR>
>>><BR>
>>> Have some issue with a filter that operate on plane source when run with<BR>
>>> more than a single process. Plane source on imput seem to be duplicated<BR>
>>> identical on all processes (no problem), then my filter run and make a<BR>
>>> shallow copy of the source and pass to output (problem start!). In the<BR>
>>> spreadsheet view I see more points than I should in the output, + I add<BR>
>>> point data I see more point data as well, I explore with spreadsheet view<BR>
>>> show that unexpected point data all duplicate of expected.<BR>
>>><BR>
>>> My question, how paraview handle source duplicated on all process? How<BR>
>>> paraview can know that the data is duplicate for plane source? How does it<BR>
>>> render such duplicate data? I seek to add some point data to plane source<BR>
>>> and provide on the output. What I need to do in the filter to avoid the<BR>
>>> issue?<BR>
>>><BR>
>><BR>
><BR>
><BR>
> _______________________________________________<BR>
> Powered by www.kitware.com <<a href="http://www.kitware.com">http://www.kitware.com</a>> <BR>
><BR>
> Visit other Kitware open-source projects at<BR>
> <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
><BR>
> Please keep messages on-topic and check the ParaView Wiki at:<BR>
> <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
><BR>
> Follow this link to subscribe/unsubscribe:<BR>
> <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
><BR>
><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>