<p>I have a different recollection.</p>
<p> </p>
<p>The link is broken, here is one that works for me</p>
<p>https://lists.mpi-forum.org/pipermail/mpi-forum/2016-January/003152.html</p>
<p>TL;DR from Bill Gropp:</p>
<pre>
"The standard says that the null handles are invalid for input unless explicitly permitted. There’s no exemption for a datatype argument where the associated count is zero."
</pre>
<p> </p>
<p>IIRC there was no objection to updating the standard in order to allow this, but unless this has been completed, I am afraid MPI_DATATYPE_NULL is not a valid datatype here</p>
<p> </p>
<p>Gilles</p>
<p>----- Original Message -----</p>
<blockquote style="margin:1em 0;padding-left:1em;border-left:2px solid blue;">
<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> </div>
<div> George.</div>
</div>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">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:</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="color:#38761d; font-family:"comic sans ms",sans-serif">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="color:#38761d; font-family:"comic sans ms",sans-serif">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="color:#38761d; font-family:"comic sans ms",sans-serif">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="color:#38761d; font-family:"comic sans ms",sans-serif">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="color:#38761d; font-family:"comic sans ms",sans-serif"> </div>
<div class="gmail_default" style="color:#38761d; font-family:"comic sans ms",sans-serif"><span id="m_3259980529876526062gmail-init_selection"><a href="http://lists.mpi-forum.org/mpi-forum/2016/01/3152.php">http://lists.mpi-forum.org/mpi-forum/2016/01/3152.php</a></span></div>
<div> </div>
<div>
<div class="gmail_default" style="color:#38761d; font-family:"comic sans ms",sans-serif">Would it be possibly to clarify this case in the next iteration of the standard?</div>
</div>
<div> </div>
--
<div dir="ltr">
<div dir="ltr">
<div>
<div>
<div>Jim Edwards<br />
</div>
<span style="font-size:x-small">CESM Software Engineer</span></div>
<span style="font-size:x-small">National Center for Atmospheric Research</span></div>
<span style="font-size:x-small">Boulder, CO</span></div>
</div>
</div>
_______________________________________________<br />
mpi-comments mailing list<br />
<a href="mailto:mpi-comments@lists.mpi-forum.org">mpi-comments@lists.mpi-forum.org</a><br />
<a href="https://lists.mpi-forum.org/mailman/listinfo/mpi-comments">https://lists.mpi-forum.org/mailman/listinfo/mpi-comments</a></blockquote>
</div>
</blockquote>
<br />