<html>
<body>
At 09:58 AM 6/20/2008, Supalov, Alexander wrote:<br>
<blockquote type=cite class=cite cite="">Content-class:
urn:content-classes:message<br>
Content-Type: multipart/alternative;<br>
<x-tab>        </x-tab>
boundary="----_=_NextPart_001_01C8D2F6.CE1CA5E4"<br><br>
<font face="Arial, Helvetica" size=2 color="#0000FF">Hi,<br>
</font> <br>
<font face="Arial, Helvetica" size=2 color="#0000FF">Ignoring an
assertion should be perfectly legal.</font></blockquote><br>
I fully agree, ignoring should always be OK, which ensures<br>
the portability of any application using assertions.<br><br>
However, I do see Rich's point - how useful are assertions<br>
if we have hundreds of them and each just works on a particular<br>
MPI implementation (or even version)? Also, if these constants<br>
are really implementation specific, does it make sense to have<br>
them in the MPI standard? Each vender will want their own set<br>
(and rightfully so) and the burden is then on the programmer to<br>
know all of the different options and understand the subtle<br>
differences (and we have to document them all in the standard).<br><br>
Perhaps we should just define broad groups of assertions and <br>
define those in the standard. The user can then query for all <br>
available assertions in that group for a particular implementation. <br>
This would have to coupled with an ability to uniquely identify <br>
certain MPI implementations at runtime. Also, this does not<br>
solve the problem for the end-user of how to select the correct<br>
assertion.<br><br>
Martin<br><br>
<br>
Martin<br><br>
<br><br>
<blockquote type=cite class=cite cite=""> <br>
<font face="Arial, Helvetica" size=2 color="#0000FF">Best regards.<br>
</font> <br>
<font face="Arial, Helvetica" size=2 color="#0000FF">Alexander<br>
</font><br>
<hr>
<font face="Tahoma" size=2><b>From:</b>
mpi3-subsetting-bounces@lists.mpi-forum.org
[<a href="mailto:mpi3-subsetting-bounces@lists.mpi-forum.org" eudora="autourl">
mailto:mpi3-subsetting-bounces@lists.mpi-forum.org</a>] <b>On Behalf Of
</b>Richard Graham<br>
<b>Sent:</b> Friday, June 20, 2008 6:53 PM<br>
<b>To:</b> MPI 3.0 Sub-setting working group<br>
<b>Subject:</b> Re: [Mpi3-subsetting] MPI subsetting: charting the way
forward atatelecon next week?<br>
</font><br>
<font face="Verdana">I think we need to be careful here when it comes to
assertions, and think hard about how<br>
 you want to handle these in a standard.  In some of the
implementations I am familiar with<br>
 a no-eager-throttle key word would be useless – it is vey
implementation specific.  I suppose<br>
 this is a big problem with trying to add implementation specific
keywords to a standard.<br>
 It is a given that this will also cause trouble when trying to come
up with an ABI, unless<br>
 one has a large set of defined constants, and are willing to have
these be no-ops in<br>
 certain implementations.<br><br>
Rich<br><br>
<br>
On 6/20/08 9:56 AM, "Richard Treumann"
<treumann@us.ibm.com> wrote:<br><br>
</font>
<dl>
<dd>Hi Alexander<br><br>

<dd>Comments imbedded below.<br><br>

<dd>I have no objections to someone providing a rationale for assertions
related to MPI-IO and MPI_1sided.  If the rationale is sound I have
no objection to putting them in the proposal. <br><br>

<dd>I feel the proposal should be evaluated by the following
algorithm.<br><br>

<dd>If (this concept  is one that seems plausible) {<br>

<dd> for each proposed assertion {<br>

<dd> if (rationale not solid) <br>

<dd> discard<br>

<dd> if (deal breaker downside) <br>

<dd> discard<br>

<dd> }<br>

<dd>if ((concept makes sense) & (set of worthwhile assertions is not
empty))<br>

<dd> make this part of MPI 2.2<br><br>

<dd>I do not see much reason to get every assertion that eventually gains
traction into MPI 2.2.  MPI 3.0 is soon enough for any that do not
make the MPI 2.2 cut. I do not want to see the concept fall because some
particular assertion is controversial. <br><br>

<dd>I consider <font face="Verdana" size=5>MPI_NO_EAGER_THROTTLE
</font><font face="Verdana">to be the single most valuable assertion for
MPI 2.2 because it is needed to allow MPI to scale to the levels we are
already seeing.<br>

<dd> <br><br>

<dd>Dick Treumann  -  MPI
Team/TCEM           
<br>

<dd>IBM Systems & Technology Group<br>

<dd>Dept 0lva / MS P963 -- 2455 South Road -- Poughkeepsie, NY 12601<br>

<dd>Tele (845) 433-7846        
Fax (845) 433-8363<br><br>
<br>
</font>
<dd><font size=2>mpi3-subsetting-bounces@lists.mpi-forum.org wrote on
06/20/2008 02:58:41 AM:<br><br>

<dd>> Dear Dick,<br>

<dd>>  <br>

<dd>> A couple of suggestions re your proposal:<br>

<dd>>  <br>

<dd>> - If ASSERTIONS is put at the end of the MPI_INIT_ASSERTED
argument <br>

<dd>> list, in C++ one can declare the last argument as having a zero
<br>

<dd>> default value, and skip it if necessary. This might help with
<br>

<dd>> deprecation of the earlier MPI_INIT_* calls.<br>
</font><font face="Verdana"><br>
</font>
<dd><font size=2>I have no objection. It seems reasonable to let C++
default the <br>

<dd>assertions parameter to "none"<br>
</font><font face="Verdana"><br>
</font>
<dd><font size=2>> - In non-Cray parts of the world, an MPI_INT
followed by MPI_FLOAT <br>

<dd>> is likely to be a 4-byte int followed by a 4-byte float. This
<br>

<dd>> sometimes depends on the compiler settings in effect, too.<br>
</font><font face="Verdana"><br>
</font>
<dd><font size=2>My rationale is not specific to any particular
architecture. <br>

<dd>Some MPI datatypes are made entirely <br>

<dd>from the same base type. Some are mixtures of types. If libmpi knows
<br>

<dd>at the moment a datatype is committed that the send side and
receive<br>

<dd>side will always use the same internal representions then it does not
<br>

<dd>need to keep track of the fact that one instance of
{MPI_INT,MPI_FLOAT}<br>

<dd>has two distinct parts. The send side can gather and ship 8 bytes
<br>

<dd>and the receive side can scatter the 8 bytes. If one side might use
4<br>

<dd>byte integers while the other side uses 8 byte integers then at <br>

<dd>least one side will need to know there is a conversion to be done for
<br>

<dd>the MPI_INT part. If an MPI job does a spawn or join that links to
a<br>

<dd>different architecture after the datatype has been committed,
and<br>

<dd>the MPI_Type_commit has discarded the details, it is too late to get
<br>

<dd>them back.  On the other hand, if it is known there will never
be a<br>

<dd>different architecture added to the job, the extra information can
be<br>

<dd>safely discarded.<br>
</font><font face="Verdana"><br>
</font>
<dd><font size=2>> - I don't think MPI_NO_THREAD_CONTENTION is really
necessary. The <br>

<dd>> original thread level settings, in particular, the use of
anything <br>

<dd>> but MPI_THREAD_MULTIPLE, seem to capture the semantics that you
proposed.<br>
</font><font face="Verdana"><br>
</font>
<dd><font size=2>This one is kind of tricky and I also am not sure what
it would mean. If<br>

<dd>we find a clear value we can keep it and if not we can remove
it.<br>
</font><font face="Verdana"><br>
</font>
<dd><font size=2>> - I can't fully follow the motivation for
MPI_NO_ANY_SOURCE <br>

<dd>> deprioritization. AFAIK, a rendezvous exchange usually starts
with a<br>

<dd>> ready-to-send packet that contains the size of the message. In
this <br>

<dd>> case the receiving side will normally reply with a
ready-to-receive <br>

<dd>> regardless of the buffer space available, and flag
MPI_ERR_TRUNCATED<br>

<dd>> on message arrival if necessary. In this case, neither <br>

<dd>> MPI_ANY_SOURCE not MPI_NO_ANY_SOURCE seem to get into way.<br>
</font><font face="Verdana"><br>
</font>
<dd><font size=2>My point is that MPI_NO_ANY_SOURCE might allow this
round trip <br>

<dd>protocol to be replaced by a 1/2 rendezvous protocol. If it is
known<br>

<dd>that MPI_ANY_SOURCE will not be used then the receive side can
send<br>

<dd>an "envelop and ready for data" packet to the send side. As
long as <br>

<dd>the send side knows it will receive the "envelop and ready for
data" <br>

<dd>packet when the receive is posted, it does not need to do the first
1/2<br>

<dd>of the rendezvous. The message matching can be done at the send
side.<br>
</font><font face="Verdana"><br>
</font>
<dd><font size=2>A send for which the receive was preposted has a <br>

<dd>good chance of finding the "envelop and ready for data"
sitting in <br>

<dd>an early queue and the large send can avoid any rendezvous
delay.<br>

<dd>Data begins to flow immediately vs waiting for a round trip of a
<br>

<dd>full rendezvous. In many cases we cut the delay in half and best
<br>

<dd>case we eliminate rendezvous delay completely. If the receive side
<br>

<dd>is late in posting the receive we still save a packet traversal
but<br>

<dd>do not save any time.<br>
</font><font face="Verdana"><br>
</font>
<dd><font size=2>If there may be an MPI_ANY_SOURCE then this does not
work because the<br>

<dd>receive side that has an MPI_ANY_SOURCE cannot guess which sender to
<br>

<dd>notify so the sender cannot count on getting a 1/2 rendezvous <br>

<dd>notification for a message that should match the MPI_ANY_SOURCE <br>

<dd>receive.<br>
</font><font face="Verdana"><br>
</font>
<dd><font size=2>The problem that made me lower the priority is that many
MPIs use an<br>

<dd>eager protocol for small messages and a rendezvous protocol for
large<br>

<dd>messages.  If the send side and receive side have the same size
buffer<br>

<dd>then both sides can reach the same conclusion: eager vs 1/2
rendezvous.<br>

<dd>If both decide on eager, the receive side will not send an<br>

<dd>"envelop and ready for data" packet and the send side will
not look <br>

<dd>for one. If both sides decide on 1/2 rendezvous then the receive
side<br>

<dd>will send an "envelop and ready for data" packet and the
send side will<br>

<dd>look for and consume the notice.  If the send side is for an 8
byte <br>

<dd>message and the receive uses a "big enough" receive buffer
of 64KB <br>

<dd>then the two sides will probably not be able to reach the same <br>

<dd>conclusion about the protocol. The receive side will ship off an<br>

<dd>"envelop and ready for data" packet that the send side will
not <br>

<dd>know what to do with.<br>

<dd> <br>
</font><font face="Verdana"><br>
</font>
<dd><font size=2>>  <br>

<dd>> Best regards.<br>

<dd>>  <br>

<dd>> Alexander<br>

<dd>>  <br>

<dd>> From: Supalov, Alexander <br>

<dd>> Sent: Friday, June 20, 2008 8:29 AM<br>

<dd>> To: 'MPI 3.0 Sub-setting working group'<br>

<dd>> Subject: RE: [Mpi3-subsetting] MPI subsetting: charting the way
<br>

<dd>> forward at atelecon next week?<br>
</font><font face="Verdana"><br>
</font>
<dd><font size=2>> Dear Dick,<br>

<dd>>  <br>

<dd>> Thank you. I remember we exchanged a couple of emails about the
<br>

<dd>> possible extensions to the set of assertions, like one-sided and
<br>

<dd>> I/O, and in my recollection, almost reached an agreement that
this <br>

<dd>> can improve performance and possibly memory footprint, as well
as be<br>

<dd>> expressed thru assertions. Do you still feel favorable about
this?<br>

<dd>>  <br>

<dd>> Best regards.<br>

<dd>>  <br>

<dd>> Alexander<br>

<dd>> <br><br>
</font><font face="Verdana"><br>
<br>
</font>
<dd><font size=2>_______________________________________________<br>

<dd>mpi3-subsetting mailing list<br>

<dd>mpi3-subsetting@lists.mpi-forum.org<br>

<dd>
<a href="http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-subsetting">
http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-subsetting</a><br>
</font><br>

</dl><font size=2><br>
</font><br>
<pre>
---------------------------------------------------------------------
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen Germany
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer
Registergericht: Muenchen HRB 47456 Ust.-IdNr.
VAT Registration No.: DE129385895
Citibank Frankfurt (BLZ 502 109 00) 600119052

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
</pre><br>
_______________________________________________<br>
mpi3-subsetting mailing list<br>
mpi3-subsetting@lists.mpi-forum.org<a href="http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-subsetting" eudora="autourl">
http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-subsetting</a>
</blockquote>
<x-sigsep><p></x-sigsep>
_______________________________________________________________________<br>
Martin Schulz, schulzm@llnl.gov,
<a href="http://people.llnl.gov/schulz6" eudora="autourl">
http://people.llnl.gov/schulz6<br>
</a>CASC @ Lawrence Livermore National Laboratory, Livermore, USA
</body>
</html>