<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 5, 2020 at 4:51 PM Benson Muite <<a href="mailto:benson_muite@emailplus.org">benson_muite@emailplus.org</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"><u></u><div><div style="font-family:Arial"><br></div><blockquote type="cite" id="gmail-m_8386624168633875755qt"><div dir="ltr"><div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div> > <br></div><div> > Hi Hitesh,<br></div><div> > <br></div><div> > What hardware are you running on and what is the interconnect?<br></div></blockquote><div> <br></div><div>Right now I am using a cluster.<br></div></div></div></blockquote><div style="font-family:Arial"><br></div><div style="font-family:Arial">What is the interconnect?</div></div></blockquote><div><br></div><div>I don't know about this. Is it relevant?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><blockquote type="cite" id="gmail-m_8386624168633875755qt"><div dir="ltr"><div><div> <br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> Have you tried changing any of the MPI settings?<br></blockquote><div> <br></div><div>What do you mean by MPI settings?<br></div></div></div></blockquote><div style="font-family:Arial">Given your comment on the barrier, this is probably not so useful at the moment.</div><blockquote type="cite" id="gmail-m_8386624168633875755qt"><div dir="ltr"><div><div> <br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> Can the reduction be done asynchronously?<br></blockquote><div> <br></div><div>I did not get your question.<br></div></div></div></blockquote><div style="font-family:Arial"><br></div><div style="font-family:Arial">For example using a non blocking all reduce:<br></div><div style="font-family:Arial"><a href="https://www.mpi-forum.org/docs/mpi-3.1/mpi31-report/node135.htm" target="_blank">https://www.mpi-forum.org/docs/mpi-3.1/mpi31-report/node135.htm</a><br></div><div style="font-family:Arial"><br></div></div></blockquote><div><br></div><div>I tried using a non-blocking call but after this code is not working correctly. <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><div style="font-family:Arial"></div><blockquote type="cite" id="gmail-m_8386624168633875755qt"><div dir="ltr"><div><div> <br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>> <br></div><div> > Regards,<br></div><div> > Benson<br></div><div> <br></div><div> Also, is your work load balanced? One way to check this might be to place a barrier just before the all-reduce call. If the barrier ends up taking most of your time, then it is likely you will need to determine a better way to distribute the computational work.<br></div></blockquote><div><br></div><div> Thanks for your response.<br></div><div><br></div><div>Yes, you are right. I have put barrier just before Allreduce and out of the total time consumed by Allreduce, 79% time is consumed by the barrier. But my computational work is balanced. Right now, I have distributed 97336 cells among 24 processors and maximum and minimum cell distribution among all processors is 4057 and 4055 respectively which is not too bad. Is there any solution to get rid of this?</div></div></div></blockquote></div></blockquote><div>Please help me in this regard. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><blockquote type="cite" id="gmail-m_8386624168633875755qt"><div dir="ltr"><div><div> <br></div></div></div></blockquote><div style="font-family:Arial"><br></div></div></blockquote></div></div>