<div dir="ltr"><div class="gmail_default"><font color="#000000" face="verdana, sans-serif">Thank you very much to both of you for your quick answers and tips. I will start by trying the first suggestion ('edge' with null values)</font><br></div><div class="gmail_default"><font color="#000000" face="verdana, sans-serif">Patrick</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-15 17:00 GMT+02:00 Jim Edwards <span dir="ltr"><<a href="mailto:jedwards@ucar.edu" target="_blank">jedwards@ucar.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:comic sans ms,sans-serif;color:#38761d">You can also use the <a href="https://github.com/NCAR/ParallelIO" target="_blank">PIO</a> library to make these settings runtime tuneable.  </div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Fri, Jun 15, 2018 at 8:55 AM, Latham, Robert J. <span dir="ltr"><<a href="mailto:robl@mcs.anl.gov" target="_blank">robl@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Fri, 2018-06-15 at 10:58 +0200, Patrick Marsaleix wrote:<br>
> Hello<br>
> <br>
> I use pnetcdf. In my program, all the cores perform the same<br>
> operations simultaneously, for example<br>
> <br>
> status=nfmpi_put_vara_real_all<wbr>(ncid,varid,start,edge,anyvar3<wbr>d)<br>
> <br>
> I wish now that some cores do not perform this operation (or<br>
> transforms it as a virtual operation), but in my program this results<br>
> in immobilizing the mpi process. Is there a way to do it?<br>
<br>
</span>You have a few options.  Here are my suggestions in decending order of<br>
"goodness" (best idea first):<br>
<br>
- Every process in the communicator must call the routine, but not<br>
every process needs to contribute I/O.  The processes that you do not<br>
wish to do anything should pass an 'edge' array of all zeros.<br>
<br>
- Instead of COMM_WORLD, create a sub-communicator containing only the<br>
participating processes.<br>
<br>
- Wrap the call with begin_indep / end_indep -- you will likely see<br>
very poor performance, but it won't hang.<br>
<br>
==rob<br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_5240273499796352691gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><div>Jim Edwards<br><br></div><font size="1">CESM Software Engineer<br></font></div><font size="1">National Center for Atmospheric Research<br></font></div><font size="1">Boulder, CO</font> <br></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div><b><span style="color:rgb(51,51,51)">Patrick Marsaleix</span></b> <img src="https://mail.google.com/mail/u/0/e/softbank_ne_jp.7D9"> </div><div>συμφωνία</div><div>協議</div><div><span style="font-size:12.8px">m[°L°]m</span></div><span style="font-family:verdana,sans-serif"></span><span style="font-family:verdana,sans-serif"><span style="color:rgb(68,68,68)"></span></span></div><div><div style="margin-left:40px"><span style="font-family:verdana,sans-serif"></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>