<div><div dir="auto">I’d create a GitHub issue for this. </div></div><div dir="auto"><br></div><div dir="auto">Checking for incorrect usage is a quality-of-implementation issue but I’m sure the devs want to fix this. It’s easy enough. </div><div dir="auto"><br></div><div dir="auto">Jeff</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 5, 2019 at 8:21 AM Zhang, Junchao via discuss <<a href="mailto:discuss@mpich.org">discuss@mpich.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<div dir="ltr">
<div dir="ltr">
<div>MPI 3.1 Chapter 5.9.3 reads "MPI_CHAR, MPI_WCHAR, and MPI_CHARACTER (which represent printable characters) cannot be used in reduction operations". But the following code with MPICH does not abort.<br>
</div>
<div><br>
</div>
<div>#include <mpi.h></div>
<div>#include <stdlib.h></div>
<div>int main(int argc, char* argv[])</div>
<div>{</div>
<div>  char a ='A',b;</div>
<div>  MPI_Init(&argc,&argv);</div>
<div>  if(MPI_Allreduce(&a,&b,1,MPI_CHAR,MPI_SUM,MPI_COMM_WORLD)) abort();</div>
<div>  MPI_Finalize();</div>
<div>}</div>
<div>
<div dir="ltr" class="m_-4032574992619149624gmail_signature">
<div dir="ltr">--Junchao Zhang</div>
</div>
</div>
</div>
</div>
</div>

_______________________________________________<br>
discuss mailing list     <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a></div>