On Thu, Jun 14, 2012 at 3:09 AM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On Jun 13, 2012, at 8:17 AM, Alexander Grayver wrote:<br>
<br>
> On 13.06.2012 13:24, Matthew Knepley wrote:<br>
>> On Wed, Jun 13, 2012 at 6:45 PM, Alexander Grayver <<a href="mailto:agrayver@gfz-potsdam.de">agrayver@gfz-potsdam.de</a>> wrote:<br>
>> Hello,<br>
>><br>
>> As stated, I would like to estimate computation to communication ratio for PETSc's linear algebra routines (e.g. MatMult{Transpose}, MatPtAP, MatMatMult etc.)<br>
>> As far as I understand the ratio depends on particular implementation and number of processes one runs application on.<br>
>> So I guess these formulas should be known?<br>
>><br>
>> It depends on the input data. For example, block diagonal matrices do not communicate in MatMult().<br>
>><br>
>> If not then I see one way to estimate it. Write app with those operations, parse -log_summary and then divide flops/messages, however the question is what information from -log_summary output should be used for that?<br>
>><br>
>> We give the number of messages and the average message length, so you can get the total length across processes. Since<br>
>> each side records, we divide by 2 (I think, you should check PetscLogView for specifics). You can also use PetscLogViewPython()<br>
>> to simplify parsing.<br>
><br>
> Is there total amount of flops given for different operations separately (I see max flops over all processes only)?<br>
<br>
</div> Sadly no. My original plan was that people who wanted different summary information would copy PetscLogView() and modify it to output just what they want. Sadly that may be too difficult.</blockquote><div><br></div>
<div>You can back out the total flops from the flop rate and time.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888"><br>
Barry<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
>><br>
>> Matt<br>
>><br>
>> Thanks.<br>
>><br>
>> --<br>
>> Regards,<br>
>> Alexander<br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
>> -- Norbert Wiener<br>
><br>
><br>
> --<br>
> Regards,<br>
> Alexander<br>
><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>