<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’m ok with a clarification that excludes TYPE(MPI_Status) from mpif.h , as Rolf proposes.<div class=""><br class=""></div><div class="">Bill</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">William Gropp<br class="">Director and Chief Scientist, NCSA<br class="">Thomas M. Siebel Chair in Computer Science<br class="">University of Illinois Urbana-Champaign</div><br class="Apple-interchange-newline"></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Jul 15, 2020, at 10:25 AM, Jeff Squyres (jsquyres) via mpiwg-fortran <<a href="mailto:mpiwg-fortran@lists.mpi-forum.org" class="">mpiwg-fortran@lists.mpi-forum.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">


<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Just to bring this thread back on-track about TYPE(MPI_Status)...
<div class=""><br class="">
</div>
<div class="">Off list, I asked Rolf R. about this issue -- he cited the same things I did, plus a few more:</div>
<div class=""><br class="">
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class="">
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">On your question on TYPE(MPI_Status), TYPE(MPI_Comm), ...:</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">MPI-3.1</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">- page 607 lines 18-24 require these types and the overloaded </span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">  operators .EQ./.NE. for mpi_f08 module</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">- page 609 lines 34-36 require these types and the overloaded </span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">  operators .EQ./.NE. for mpi module</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">- there is no such text on page 611-612 on mpif.h</span></div>
<div class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">
</div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">And page 802 lines 9-15 also Show that it was never intented to add </span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">These types anf routines to old mpif.h.</span></div>
<div class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">
</div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">It would be helpful, to add at least on page 657 line 11</span></div>
<div class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">
</div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">C, some in both C and Fortran (only in the mpi_f08 and mpi modules).</span></div>
<div class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">
</div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">Can you fix this with an one-vote-bug-fix-issue? </span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">Because it is not good if the information must be taken from the change-log.</span></div>
<div class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">
</div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">---</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">Summary:</span></div>
<div class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">
</div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">Does this mean that TYPE(MPI_Status) </span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">[ and the Fortran routines MPI_STATUS_F2F08 and _F082F ]</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">needs to be defined in </span></div>
<div class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">
</div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">- mpif.h?    NO</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">- and the mpi module?    YES</span></div>
<div class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">
</div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">Bug-fix needed in MPI-3.1 page 657 line 11: add</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">"(only in the mpi_f08 and mpi modules)" at the end.</span></div>
<div class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">
</div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">I hope this helps.</span></div>
<div class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">
</div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">Best regards</span></div>
<div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 18px;" class="">Rolf</span></div>
</blockquote>
<div class="">
<div class=""><br class="">
</div>
<div class="">So I think there's at least a clarification here: the TYPE(MPI_Status) and associated functions is -- at a minimum -- supposed to be in the mpi module.</div>
<div class=""><br class="">
</div>
<div class="">I'm a little curious as to why we conspicuously left it out of mpif.h.</div>
<div class=""><br class="">
</div>
<div class="">Bill: this is somewhat counter to the clarification you proposed.</div>
<div class=""><br class="">
</div>
<div class="">Are you ok with this?  I think the text in the standard supports what Rolf proposes.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Jul 10, 2020, at 12:11 PM, Jeff Squyres (jsquyres) via mpiwg-fortran <<a href="mailto:mpiwg-fortran@lists.mpi-forum.org" class="">mpiwg-fortran@lists.mpi-forum.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">On Jul 10, 2020, at 11:18 AM, Bill Long <<a href="mailto:longb@cray.com" class="">longb@cray.com</a>> wrote:<br class="">
<blockquote type="cite" class=""><br class="">
In the “change” section there is this txt:<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>• Within the mpi_08 Fortran module, the status was defined as TYPE(MPI_Status). Additionally, within both the mpi and the mpi_f08 modules, the constants MPI_STATUS_SIZE, MPI_SOURCE, MPI_TAG, MPI_ERROR,
 and TYPE(MPI_Status) are defined. New conversion routines were added: MPI_STATUS_F2F08, MPI_STATUS_F082F, MPI_Status_c2f08, and MPI_Status_f082c, In mpi.h, the new type MPI_F08_status, and the external variables MPI_F08_STATUS_IGNORE and MPI_F08_STATUSES_IGNORE
 were added.<br class="">
</blockquote>
<br class="">
Good point.<br class="">
<br class="">
Just to be clear, you're referring to the changelog section in MPI-3.1, specifically bullet 30 on p802.<br class="">
<br class="">
That being said:<br class="">
<br class="">
- the changelog is non-binding ...but it does indicate our intent from that time<br class="">
- the changelog text states that the mpi module has TYPE(MPI_Status) -- but it does not say it was added to mpif.h<br class="">
<br class="">
<blockquote type="cite" class="">1) Why would the F08 status be defined different from the C definition?  (If that were the case, conversions between f08 and C would be irrelevant).
<br class="">
</blockquote>
<br class="">
I remember that there was a lot of discussion about this at the time, which is what resulted in Figure 17.1.<br class="">
<br class="">
I know there were discussions about making the F08 and C statuses the same, but for some reason we chose not to mandate it.  Perhaps we wanted to allow implementations to do whatever they wanted...?  (e.g., allow Status_c2f08 be a no-op if the implementation
 wanted to, but not mandate it)<br class="">
<br class="">
<blockquote type="cite" class="">2) \begin{unpopular} Why are the legacy mpi module and mpif.h still included in the spec?  These are embarrassingly obsolete.  If this was fixed, none of the above mentioned conversion routines would be needed.  \end(unpopular}<br class="">
</blockquote>
<br class="">
<br class="">
I would love it if we could ditch -- at a minimum -- mpif.h.<br class="">
<br class="">
However, there's oodles of legacy code out there that uses it.  That's why even deprecating it gets shouted down at Forum meetings.<br class="">
<br class="">
-- <br class="">
Jeff Squyres<br class="">
<a href="mailto:jsquyres@cisco.com" class="">jsquyres@cisco.com</a><br class="">
<br class="">
_______________________________________________<br class="">
mpiwg-fortran mailing list<br class="">
<a href="mailto:mpiwg-fortran@lists.mpi-forum.org" class="">mpiwg-fortran@lists.mpi-forum.org</a><br class="">
<a href="https://lists.mpi-forum.org/mailman/listinfo/mpiwg-fortran" class="">https://lists.mpi-forum.org/mailman/listinfo/mpiwg-fortran</a><br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
<div class=""><span class=""><br class="">
-- <br class="">
</span><span class="">Jeff Squyres<br class="">
</span><span class=""><a href="mailto:jsquyres@cisco.com" class="">jsquyres@cisco.com</a></span>
</div>
<br class="">
</div>
</div>
</div>

_______________________________________________<br class="">mpiwg-fortran mailing list<br class=""><a href="mailto:mpiwg-fortran@lists.mpi-forum.org" class="">mpiwg-fortran@lists.mpi-forum.org</a><br class="">https://lists.mpi-forum.org/mailman/listinfo/mpiwg-fortran<br class=""></div></blockquote></div><br class=""></div></body></html>