(j3.2006) (SC22WG5.3911) [ukfortran] [MPI3 Fortran] MPI non-blocking transfers
N.M. Maclaren
nmm1
Fri Jan 23 19:44:37 UTC 2009
On Jan 23 2009, Van Snyder wrote:
>>
>> >Fortran understands the semantics of its WAIT statement, but doesn't
>> >understand the semantics of the MPI wait procedure or MPI handles. It
>> >can't know that it shouldn't fiddle with the buffer if it or a subobject
>> >of it doesn't appear. If its address is hiding inside of an MPI handle,
>> >there's no way Fortran will know that.
>>
>> In theory, but not in practice. Not merely is the identifier an integer
>> value (and may be the result of arbitrarily complicated extraction), the
>> WAIT statement may be inside an external procedure.
>
>That's what the ASYNCHRONOUS attribute for arguments is supposed to
>address.
I am completely lost! I don't see why that attribute has anything at all
to do with the WAIT statement - there isn't any reason that the buffer
and the transfer identifier need be passed down through the same call chain.
My point is that a compiler can't, in practice, make use of the fact that
the WAIT statement completes a transfer - because it (a) can't identify the
affector from the identifier and (b) can't tell which procedures might end
up executing a WAIT statement and for which transfers.
>> Its worst problem is that it doesn't work - or, alternatively, it needs
>> Real Magic (i.e. the compiler to read the mind of the programmer).
>
>That statement also requres Real Magic: It requires me to read Nick's
>mind ;->
In that case, I think that we have both lost each other and the thread!
>> The second point is that a trivial tweak to the ASYNCHRONOUS attribute
>> (or a new attribute with essentially identical properties) DOES work.
>> You can prove that quite easily by drafting a design of MPI non-blocking
>> I/O that uses Fortran asynchronous I/O!
>
>That's what the ASYNCHRONOUS attribute for arguments is supposed to
>address. What's defective about it?
Nothing. My objection is to 'solutions' based on procedure flags and/or
the WAIT statement.
>> I don't know what Resolution T7 says.
Ah. Thanks.
>Since MPI could in principle be implemented by asynchronous I/O
>statements in external procedures, if ASYNCHRONOUS doesn't cover the
>ground it needs to be repaired. The way to do that is with an
>interpretation request, since it was introduced in 2003.
I agree. Personally, I think that it covers the case, and am trying to
find out who disagrees, and why.
>Adding another attribute with "essentially identical properties" would
>do nothing other than to preserve the "beloved Fortran tacked-on look"
>that was lamented during the 1977 standardization.
I agree there, too.
Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QH, England.
Email: nmm1 at cam.ac.uk
Tel.: +44 1223 334761 Fax: +44 1223 334679
More information about the J3
mailing list