(j3.2006) (SC22WG5.3734) [ukfortran] Nick's MPI non-blocking proposal

N.M. Maclaren nmm1 at cam.ac.uk
Thu Dec 4 04:40:45 EST 2008


On Dec 4 2008, Aleksandar Donev wrote:
>
>I am going to go out of line and actually give a positive review of 
>Nick's proposal :-) I like the basic design, which I have advocated as 
>well (asynchronous attribute for non-blocking two-sided transfer, and 
>volatile for one-sided target windows). It is similar to my own proposal 
>except that it does not use SYNC MEMORY but proposes two new intrinsics 
>(this sounds like a good idea).

Thank you.

>> If that is too horrible, and I think that it is, then the C interface
>> would need to specify the number of arguments that make up the
>> affector.
>
>Can you please explain why it is needed to call this from C, and what 
>that would mean in terms of implementation? I see how it tells the 
>Fortran compiler that asynch I/O starts/ends so it knows when to flush 
>buffers/registers/etc., but what would it mean to C??? An example would 
>be great.

It means nothing to C!  The point of allowing it to be called from C is if
the asynchronous I/O is written in C (e.g. MPI).  It provides Fortran with
exactly the same information that it would get if it passed an ASYNCHRONOUS
variable to a subroutine that then performed asynchronous I/O on it.  My
guess is that few Fortran compilers would use the information, but it needs
to be provided in case any do.

>>  A Fortran processor need not do anything other
>> than define ID to be a suitable value in SET_PENDING if it does
>> not need that information.
>
>I missed one thing: What is a "suitable value", i.e., are there 
>constraints on the values (e.g., they have to be distinct from other 
>pending states or what?).

Whatever the constraints are on a value returned via ID= in an asynchronous
READ or WRITE!  I tried chasing that up, and didn't find much.  Yes, the
wording probably needs clarifying.


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