<div dir="ltr">You are correct. The MPI_DATATYPE_NULL is an acceptable datatype for cases where the target processor sends or receives no data. The standard uses MPI_DATATYPE_NULL in 2 instances (in example 5.23) to highlight no data movement, but fails to make a clear reference to the fact that this is an acceptable use.<div><br></div><div> George.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 8, 2022 at 5:31 PM Jim Edwards via mpi-comments <<a href="mailto:mpi-comments@lists.mpi-forum.org">mpi-comments@lists.mpi-forum.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"><div dir="ltr"><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)">There seems to be some ambiguity in the standard with respect to usage of the MPI_DATATYPE_NULL variable.</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)">It would seem to me that if an MPI routine such as MPI_Send or MPI_ALLTOALLW has a data count argument of 0</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)">then MPI_DATATYPE_NULL should be an acceptable value for the datatype. Here is a discussion from several years</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)">ago with openmpi developers. It references a discussion in the standards forum but I can no longer find it.</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)"><span id="m_3259980529876526062gmail-init_selection"><br></span></div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)"><span id="m_3259980529876526062gmail-init_selection"><a href="http://lists.mpi-forum.org/mpi-forum/2016/01/3152.php" target="_blank">http://lists.mpi-forum.org/mpi-forum/2016/01/3152.php</a></span></div><div><br></div><div><div style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)" class="gmail_default">Would it be possibly to clarify this case in the next iteration of the standard?</div><br></div><div><br></div>-- <br><div dir="ltr"><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></div>
_______________________________________________<br>
mpi-comments mailing list<br>
<a href="mailto:mpi-comments@lists.mpi-forum.org" target="_blank">mpi-comments@lists.mpi-forum.org</a><br>
<a href="https://lists.mpi-forum.org/mailman/listinfo/mpi-comments" rel="noreferrer" target="_blank">https://lists.mpi-forum.org/mailman/listinfo/mpi-comments</a><br>
</blockquote></div>