<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">2. 7. 2018 v 17:57, Stefano Zampini <<a href="mailto:stefano.zampini@gmail.com" class="">stefano.zampini@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">The intent was not to show you a deadlock; was to provide you evidence that the PetscLogEvent model is meant to have the same event created collectively (hopefully at class registration) on all processes. See also PetscLogViewDefault</div><div class="gmail_extra" style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class=""><div class="gmail_quote">2018-07-02 18:45 GMT+03:00 Vaclav Hapla<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:vaclav.hapla@erdw.ethz.ch" target="_blank" class="">vaclav.hapla@erdw.ethz.ch</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word; line-break: after-white-space;" class=""><div class="">Thanks for the MWE. But it behaves exactly as I would anticipate, see log. I think that naming the event differently for each rank is not good but fortunately PETSc just ignores this for rank > 0. Important is the event id which is the same. I correctly get that the time spent in this event is slightly more than 8 s and the ratio between the shortest and the longest time among all ranks is 8.0.</div><div class=""><br class=""></div><div class="">Where's the deadlock? Note that PetscLogEventBegin/End and PetscStageLogPush/Pop are not collective!</div><div class=""><br class=""></div><div class="">And thanks for another argument for better specificity of the log view. If the same event would be nested at several levels, the obtained total time wouldn't say anything useful.</div><div class=""><br class=""></div><div class="">Thanks</div><span class="HOEnZb"><font color="#888888" class=""><div class=""><br class=""></div><div class="">Vaclav</div><div class=""><br class=""></div></font></span></div><br class=""><div style="word-wrap: break-word; line-break: after-white-space;" class=""><div class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">2. 7. 2018 v 17:20, Stefano Zampini <<a href="mailto:stefano.zampini@gmail.com" target="_blank" class="">stefano.zampini@gmail.com</a>>:</div><br class="m_-331971224850311693Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word; line-break: after-white-space;" class=""><div class=""><span class=""><div class=""><br class=""></div></span><div class="">I don't see why this should lead to deadlock? With current class-wise events you can already have many simultaneous instances of the same event at once.</div><div class=""><br class=""></div></div></div></blockquote><div class=""><br class=""></div><div class="">Attached a MVE to better explain myself. If you run with p processes, you will see what I mean</div><div class=""><br class=""></div><div class=""> </div></div><div class=""><br class=""></div>--<span class="Apple-converted-space"> </span><br class=""><div class="m_-331971224850311693gmail_signature" data-smartmail="gmail_signature">Stefano</div></div></div><span id="m_-331971224850311693cid:22E64F18-6275-455C-948D-E5DBBF805DCD@www.pwlan.ch." class=""><log.c></span></div></blockquote></div><br class=""></div></div><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space"> </span><br class=""><div class="gmail_signature" data-smartmail="gmail_signature">Stefano</div></div></div></blockquote></div><br class=""></div></body></html>