<div dir="ltr"><div dir="ltr"><div>Shidi,<br></div> Rethink the comm passed to your ISCreateGeneral(). Could you do it with PETSC_COMM_SELF?<div><br><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--Junchao Zhang</div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 5, 2020 at 3:27 PM Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">The column after the time in the PETSC output, on the ISCreateGeneral row, with -log_view, shows the ratio of the max time (shown) to min time.<div>If you are using your own timers just report the min and max time that you measure.</div><div>You can also put an MPI_Barrier before the call to ISCreateGeneral to get clean data.</div><div>And I trust that the problem is well load balance, that is, all processors have the same amount of data.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 5, 2020 at 4:00 PM Y. Shidi <<a href="mailto:ys453@cam.ac.uk" target="_blank">ys453@cam.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thank you for your reply Mark.<br>
What do you mean by ratio (max/min)?<br>
Do I need to turn on some options for this?<br>
<br>
Kind regards,<br>
Shidi<br>
<br>
On 2020-07-05 20:15, Mark Adams wrote:<br>
> ISCreateGeneral just takes your indices and caches them. But it is a<br>
> synch point. What ratio (max/min) is PETSc reporting in this data?<br>
> <br>
> On Sun, Jul 5, 2020 at 1:51 PM Y. Shidi <<a href="mailto:ys453@cam.ac.uk" target="_blank">ys453@cam.ac.uk</a>> wrote:<br>
> <br>
>> Dear developers,<br>
>> <br>
>> I am currently doing a weak scaling test, and find that<br>
>> the weak scaling results for ISCreateGeneral() is very bad.<br>
>> For 2, 4, 8 processors, the running times for completing<br>
>> ISCreateGeneral() are:<br>
>> 0.687494, 3.00597 and 10.0613.<br>
>> I am not sure if this is normal.<br>
>> <br>
>> Thank you for your time.<br>
>> <br>
>> Kind Regards,<br>
>> Shidi<br>
</blockquote></div>
</blockquote></div></div>