<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div><br></div><blockquote type="cite"><div><b>From:</b> Jeff Hammond <<a href="mailto:jeff.science@gmail.com">jeff.science@gmail.com</a>><br><b>Date:</b> May 11, 2016 at 5:34:12 PM GMT+3<br><b>To:</b> MPI WG Remote Memory Access working group <<a href="mailto:mpiwg-rma@mpi-forum.org">mpiwg-rma@mpi-forum.org</a>><br><b>Cc:</b> <a href="mailto:mpiwg-rma@lists.mpi-forum.org">mpiwg-rma@lists.mpi-forum.org</a><br><b>Subject:</b> <b>Re: [mpiwg-rma] Use of MPI_SHORT_INT, etc with MPI_Accumulate</b><br><br></div></blockquote><blockquote type="cite"><div><span>How else can you call with eg op=MAXLOC?</span><br><span></span><br><span>Sent from my iPhone</span><br><span></span><br><blockquote type="cite"><span>On May 11, 2016, at 5:02 PM, Nathan Hjelm <<a href="mailto:hjelmn@mac.com">hjelmn@mac.com</a>> wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I have a user who is trying to use MPI_SHORT_INT as the origin and target datatype arguments of MPI_Accumulate. My interpretation of the standard does not allow this type. I am justifying this because of MPI 3-1 § 11.3.4 pp 425:2-8:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Each datatype argument must be a predefined datatype or a derived datatype, where</span><br></blockquote><blockquote type="cite"><span>all basic components are of the same predefined datatype. Both datatype arguments must</span><br></blockquote><blockquote type="cite"><span>be constructed from the same predefined datatype.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>MPI_SHORT_INT, MPI_LONG_DOUBLE_INT, etc are not in any of the A.1 tables labeled as "predefined datatypes”. They show up in a separate list of datatypes for reduction functions. Since these datatypes are not “predefined datatypes” and are not composite datatypes of the "same predefined datatype” they are not valid for MPI_Accumulate, MPI_Get_accumulate, etc. Am I wrong in my interpretation?</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>-Nathan</span><br></blockquote><blockquote type="cite"><span>_______________________________________________</span><br></blockquote><blockquote type="cite"><span>mpiwg-rma mailing list</span><br></blockquote><blockquote type="cite"><span><a href="mailto:mpiwg-rma@mpi-forum.org">mpiwg-rma@mpi-forum.org</a></span><br></blockquote><blockquote type="cite"><span><a href="http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-rma">http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-rma</a></span><br></blockquote></div></blockquote></body></html>