<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
First, I withdraw my idea for MPI_Abi_sizes since MPI_Type_size already works for all of that. We just need Advice to Users about it.
<div><br>
</div>
<div>Second, I think we just need to say that the f2c/c2f symbols, while part of the C API, are part of the Fortran ABI and therefore must match the way the Fortran library was compiled. This means that these symbols have to come from the libmpifort_abi.so
(not previously discussed, but obvious), not libmpi.so, and therefore this scheme works with implementations that provide both LP64 and ILP64 Fortran, as Intel MPI does.</div>
<div><br>
</div>
<div>We will need to add Advice to Implementers about this, that ensure MPI_Type_size(MPI_INTEGER) does the right thing.</div>
<div><br>
</div>
<div>We also need Advice to Users saying that MPI_Fint is not part of the C ABI and is not present in the ABI mpi.h, but rather the user is required to query the type size at runtime and use the appropriate C type.</div>
<div><br>
</div>
<div>This is Option 2, with more detail.</div>
<div><br>
</div>
<div>Jeff</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On 18. Aug 2023, at 21.04, Lisandro Dalcin <dalcinl@gmail.com> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div>
<table bgcolor="#FFEB9C" border="1">
<tbody>
<tr>
<td><font face="verdana" size="1"><b>External email: Use caution opening links or attachments</b>
</font></td>
</tr>
</tbody>
</table>
<br>
<div>
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, 18 Aug 2023 at 17:28, Erik Schnetter <<a href="mailto:schnetter@gmail.com">schnetter@gmail.com</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">
We can introduce a new type `MPIABI_Fint` which is always equal to a C<br>
`int`. In the MPI ABI we only use this type.<br>
<br>
</blockquote>
<div><br>
</div>
<div>But then we will need new MPIABI_XXX_{c2f|f2c} converters, right? And keep MPI_Fint (and current converters) for backward compatibility?</div>
</div>
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>Lisandro Dalcin<br>
============<br>
Senior Research Scientist<br>
Extreme Computing Research Center (ECRC)<br>
King Abdullah University of Science and Technology (KAUST)<br>
<a href="http://ecrc.kaust.edu.sa/" originalsrc="http://ecrc.kaust.edu.sa/" shash="pPlNnHKJ44OCUAghCdzUUJ2vNtRCWb5mXFyegJcc0HcFl7fIo+/pzFtrHW1Nf7N2ynv0q8AxEqjV1j9z52lDBMBd01eA2w5alyYU9YPcIyKyABFspYsnjpmg5rpoc+8Tyd/cFBb/OPhMgrmZLbDAHdxDmulOOhDM9b3AsXoKQys=" target="_blank">http://ecrc.kaust.edu.sa/</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
-- <br>
mpiwg-abi mailing list<br>
mpiwg-abi@lists.mpi-forum.org<br>
https://lists.mpi-forum.org/mailman/listinfo/mpiwg-abi<br>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>