From owner-hpff-core  Fri Nov  1 16:23:40 1996
Received: (from daemon@localhost) by cs.rice.edu (8.7.1/8.7.1) id QAA00386 for hpff-core-out; Fri, 1 Nov 1996 16:23:40 -0600 (CST)
Received: from [128.42.5.118] (pasyn-23.rice.edu [128.42.5.151]) by cs.rice.edu (8.7.1/8.7.1) with ESMTP id QAA00353; Fri, 1 Nov 1996 16:23:30 -0600 (CST)
X-Sender: chk@titan.cs.rice.edu
Message-Id: <v0300781aaea013756957@[128.42.5.118]>
In-Reply-To: <199610312058.PAA64873@theory.tc.cornell.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 1 Nov 1996 14:53:27 -0600
To: David Presberg <presberg@tc.cornell.edu>
From: Chuck Koelbel <chk@cs.rice.edu>
Subject: Re: hpff-core: Date, Times, ?? Place ?? of "HPFF BOF" at SC'96
 info requested
Cc: hpff-core@cs.rice.edu, presberg@tc.cornell.edu
Sender: owner-hpff-core
Precedence: bulk

---------------------------------------------------------------------------
hpff-core@cs.rice.edu is a mailing list for announcements related to High
Performance Fortran.  Instructions for adding or deleting yourself
from this list appear at the bottom of this message.
---------------------------------------------------------------------------
>Folks --
>
>I assume there will be some HPFF "BOF" (or some such) at SC'96.
>Have the date, time, and place been picked yet?
>
>-- Pres

7:00-9:00pm Tuesday night, Washington Room.

We now return you to your regularly scheduled crisis...

**********************************************************************
Charles Koelbel				CITI/CRPC, MS 41
Center for Research on Parallel Computation		Rice University
Rice University				6100 Main Street
chk@cs.rice.edu				Houston, TX 77005
**********************************************************************


---------------------------------------------------------------------------
To (un)subscribe to this list, send mail to hpff-core-request@cs.rice.edu.
Leave the subject line blank, and in the body put the line
(un)subscribe <email-address>
---------------------------------------------------------------------------

From owner-hpff-core  Sun Nov  3 14:47:21 1996
Received: (from daemon@localhost) by cs.rice.edu (8.7.1/8.7.1) id OAA08836 for hpff-core-out; Sun, 3 Nov 1996 14:47:21 -0600 (CST)
Received: from [128.42.5.203] (pasyn-75.rice.edu [128.42.5.203]) by cs.rice.edu (8.7.1/8.7.1) with ESMTP id OAA08828 for <hpff-core>; Sun, 3 Nov 1996 14:47:15 -0600 (CST)
X-Sender: chk@titan.cs.rice.edu
Message-Id: <v03007803aea2b0749ec5@[128.42.5.203]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Sun, 3 Nov 1996 14:26:40 -0600
To: hpff-core
From: Mary E Zosel <zosel@coral.llnl.gov> (by way of Chuck Koelbel)
Subject: Re: hpff-core: Date, Times, ?? Place ?? of "HPFF BOF" at SC'96
 info requested
Sender: owner-hpff-core
Precedence: bulk

---------------------------------------------------------------------------
hpff-core@cs.rice.edu is a mailing list for announcements related to High
Performance Fortran.  Instructions for adding or deleting yourself
from this list appear at the bottom of this message.
---------------------------------------------------------------------------
Let's amend that ...

7:00 - 9:00 Wednesday night, Washington Room is I believe the updated
time ...

I'm easy at this point however - whatever shows up in the program, we'll do.

  -mary-


---------------------------------------------------------------------------
To (un)subscribe to this list, send mail to hpff-core-request@cs.rice.edu.
Leave the subject line blank, and in the body put the line
(un)subscribe <email-address>
---------------------------------------------------------------------------

From owner-hpff-core  Wed Nov 13 11:27:07 1996
Received: (from daemon@localhost) by cs.rice.edu (8.7.1/8.7.1) id LAA09808 for hpff-core-out; Wed, 13 Nov 1996 11:27:07 -0600 (CST)
Received: from [128.42.1.241] (tanete.cs.rice.edu [128.42.1.241]) by cs.rice.edu (8.7.1/8.7.1) with ESMTP id LAA09801; Wed, 13 Nov 1996 11:27:01 -0600 (CST)
X-Sender: tlc@cs.rice.edu
Message-Id: <v03007808aeafb2b6ca17@[128.42.1.241]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Priority: 1 (Highest)
Date: Wed, 13 Nov 1996 11:17:47 -0600
To: hpff-core
From: Theresa Chatman <tlc@rice.edu>
Subject: hpff-core: LAST DAY FOR HOTEL ROOMS - Nov. 18
Cc: tlc, butler, nnemer@mcs213k.cs.umr.edu, kamratha@sdsc.edu,
        boisseau@snowdog.sdsc.edu, delves@nasoftwr.demon.co.uk
Sender: owner-hpff-core
Precedence: bulk

---------------------------------------------------------------------------
hpff-core@cs.rice.edu is a mailing list for announcements related to High
Performance Fortran.  Instructions for adding or deleting yourself
from this list appear at the bottom of this message.
---------------------------------------------------------------------------
Hello again,

I know that most of you will be at SC'96 next week, so I wanted to remind
you that November 18th is the last day in which to make your hotel
reservations for the December HPFF meeting in Houston (see complete details
below).  If you haven't made your hotel arrangements, please do so ASAP.
The hotel will be extremely full during that week.

Thanks,
Theresa


>X-Sender: tlc@cs.rice.edu
>Mime-Version: 1.0
>Date: Tue, 8 Oct 1996 10:21:31 -0600
>To: hpff-core
>From: Theresa Chatman <tlc@rice.edu>
>Subject: Details for the December 9-11 HPFF meeting
>Cc: tlc, butler, nnemer@mcs213k.cs.umr.edu, hatchell@cs.yale.edu,
>        kamratha@sdsc.edu, boisseau@snowdog.sdsc.edu,
>        delves@nasoftwr.demon.co.uk
>
>To the HPFF core group:
>
>The next HPFF meeting will be held on December 9-11, 1996.  The meeting
>will be held at Rice University, 6100 Main Street, Houston, TX, 77005.
>
>The registration fee for this meeting will be $100, and will be collected
>on site.  Please make your checks and POs payable to Rice University (no
>credit cards or cash, please).  In order to adequately prepare for the
>meeting, I will need to know if you plan to attend, so please RSVP to
>tlc@rice.edu.  If you are a vegetarian or have any other special needs, I
>will need to know this as well.
>
>We have a block of rooms at the Houston Plaza Hilton, 6633 Travis, Houston,
>TX, 77030.  To make your hotel reservations, call 713-313-4000 no later
>than November, 18,1996 (the fax number is 713-313-4650).   After that date,
>the rooms will be released to the general public.  Be sure to refer to the
>HPFF meeting.
>
>Our sleeping room rate is $75 per night for single occupancy and $85 per
>night for double occupancy.  The hotel sleeping rooms are equipped with
>dataport lines, so you will be able to use your portable computers from
>your sleeping rooms.
>
>The Hilton is two blocks from Rice University, and they offer complimentary
>shuttle service to and from Rice.  There is a shuttle service, Airport
>Express, that travels between the airports and area hotels.  The cost is
>$11.50 one-way between the hotel and Hobby Airport, and $16.75 one-way
>between the hotel and Intercontinental Airport.  Resevations are not
>necessary (they are located in the baggage claim area at the airports), but
>they can be reached at 713-523-8888.  You should allow a little extra
>travel time if you choose to use this service--the reservationist can give
>you an estimate on travel time.
>
>If you have handouts that you would like to have distributed at the HPFF
>meeting, please send them to me by noon Central Time on Thursday, December
>5, 1996.  Electronic copies should be sent to tlc@rice.edu AND
>crpc.tr@cs.rice.edu.
>
>For the people who will be supported by the CRPC:  when you make your hotel
>reservations, please present them with a credit card number in order to
>cover your incidentals.  The CRPC will be directly billed for your sleeping
>room charges.
>
>The format of the meeting follows:
>
>Monday, 12/9
>
>9am - 10pm
>
>One U-shaped room for 25 people.
>Two breakout rooms conference style for 10-15 people each.
>
>Continental breakfast, breaks, and lunch will be provided.  Dinner is at
>your own expense.
>
>Tuesday, 12/10
>
>9am - 10pm
>
>One U-shaped room for 25 people.
>Two breakout rooms conference style for 10-15 people each.
>
>Continental breakfast, breaks, and lunch will be provided.  Dinner is at
>your own expense.
>
>Friday, 12/11
>
>9am to noon
>
>One U-shaped room for 25 people.
>Two breakout rooms conference style for 10-15 people each.
>
>Continental breakfast and a break will be provided.
>
>If you have any questions regarding the logistics for the HPFF meeting,
>please let me know.  If you have any questions regarding technical issues,
>please direct them to Mary Zosel (zosel@llnl.gov).
>
>Also, for your information, our contact person at the Hilton is Dewayne
>Burnett.
>
>Sincerely,
>Theresa Chatman
>Manager of Outreach Programs, CRPC
>Rice University
>MS-41
>6100 South Main Street
>Houston, TX  77005
>713-285-5180 Phone
>713-285-5136 Fax
>tlc@rice.edu
>


---------------------------------------------------------------------------
To (un)subscribe to this list, send mail to hpff-core-request@cs.rice.edu.
Leave the subject line blank, and in the body put the line
(un)subscribe <email-address>
---------------------------------------------------------------------------

From owner-hpff-core  Thu Nov 21 14:25:01 1996
Received: (from daemon@localhost) by cs.rice.edu (8.7.1/8.7.1) id OAA22132 for hpff-core-out; Thu, 21 Nov 1996 14:25:01 -0600 (CST)
Received: from mail.ionet.net (ultra2.ionet.net [206.41.128.42]) by cs.rice.edu (8.7.1/8.7.1) with ESMTP id OAA22116 for <hpff-core@cs.rice.edu>; Thu, 21 Nov 1996 14:24:52 -0600 (CST)
Received: from Zvyvogs (tsip12.ionet.net [206.28.164.21]) by mail.ionet.net (8.7.6/8.7.3) with SMTP id OAA06233; Thu, 21 Nov 1996 14:17:33 -0600 (CST)
X-Mailer: InterCon tcpCONNECT4 4.0 (Macintosh)
MIME-Version: 1.0
Message-Id: <9611211429.AA44038@Zvyvogs>
Date: Thu, 21 Nov 1996 14:29:44 -0600
From: "Jerrold L. Wagener" <jwagener@ionet.net>
To: hpff-core@cs.rice.edu
Cc: x3j3@ncsa.uiuc.edu
Subject: hpff-core: async I/O
Content-Type: Text/Plain; charset=US-ASCII
Content-Disposition: Inline
Sender: owner-hpff-core
Precedence: bulk

---------------------------------------------------------------------------
hpff-core@cs.rice.edu is a mailing list for announcements related to High
Performance Fortran.  Instructions for adding or deleting yourself
from this list appear at the bottom of this message.
---------------------------------------------------------------------------
To:       HPFF
From:     Jerry Wagener
Subject:  Asynchronous I/O
Date:     21 Nov 96

At its meeting last week X3J3 (unanimously) approved the attached 
specification (ascii version of paper X3J3/96-158r2) for Asynchrounous I/O in 
Fortran 2000.  Though a number of details have yet to be fleshed out for this 
specification, the committee has asked that I call to your attention that 
158r2 appears to differ significantly from the asynchronous I/O facility 
planned for HPF 2.

The 158r2 specification is intended for the entire Fortran audience, not just 
the high performance community; therefore it is more "permissive", and indeed 
need not be implemented asynchronously for the "hard" cases.  We hope, 
however, that the HPF 2 specification can be modeled as closely as possible 
upon the appropriate subset of 158r2.  As best we can tell, a subst of 158r2 
maps upon the HPF 2 requirements exactly, and we will attempt to provide you 
with the details of this subset as soon as possible.

Sincerely yours,

Jerry

----------------------------------------------------------------

                                               X3J3/96-158r2

To: X3J3
From: Rich Bleikamp
Subject: Syntax and Edits for Async I/O (tentative)
Date: Nov. 19, 1996

See paper 96-147r1 for the semantics previously approved by
X3J3 for this
feature.

Major Changes since 96-158r1
     - Added an ASYNCHRONOUS statement  (per the straw
       vote).
     - changed ASYNC to ASYNCHRONOUS (attribute name,
       specifier name)
     - fixed 9.6.1.14: sort of, the phrase is still a
       little awkward.
     - added a conceptual model after the rationale.
     - fixed NAMELIST stuff, so only variables affected by
       the namelist are restricted like other list items.
     - I added a paragraph about implied-do-variables
       becoming undefined, in output data transfer
       statements.  This will prohibit the user from
       examining said variables, until the corresponding
       WAIT operation is performed.
     - functions referenced in item lists in async data
       transfer statements shall be PURE.
     - I addressed the issue of PRIVATE  componets needing
       the ASYNCHRONOUS attribute by adding the text
       ", or shall be a subobject  of an object with the
       ASYNCHRONOUS attribute" whever we required a
       variable to have that attribute.  I considered
       interp 140 (not approved yet) in this context.  The
       alternative is to change 6.1.2, where some
       attribuutes are inherited by components from their
       parent object.
     
Unresolved Issues
     -  We have not decided if ID= variables should be a new
       datatype, other than default integer (either a new
       intrinsic type, or an implicitly defined derived
       type).  This request came from Robert Corbett of
       Sun.
     - I've looked at the restrictions on namelist-group-
       objects not being pointers, and it is similar to
       other restrictions, namely, only arrays with
       constant bounds are permissible.  So i've decided
       not to do anything about this.  It is unrelated to
       ASYNC i/o.
     
     
"Notes to the reader"  are not notes to be included in the
standard.  Text to be included in the standard is either
"quoted" or indented.

Edits to 96-007R1:

In rule R426 (component-attr-spec), add:
     or  ASYNCHRONOUS

In rule R503 (attr-spec), add:
     or  ASYNCHRONOUS

and add a new section (page 57):
     5.1.2.12    ASYNCHRONOUS attribute
     The ASYNCHRONOUS attribute is required for some
     variables used in asynchronous input /output statements
     in some scoping units, as described in section 9.  This
     attribute may be specified for those variables, or any
     other variables, in other scoping units.
     
Note to reader: we allow any variable to have the
asynchronous attribute so users can remove ASYNCHRONOUS
specifiers from input / output statements without having to
delete the ASYNCHRONOUS attribute.
     
     Note: The ASYNCHRONOUS attribute is similar to the
     VOLATILE attribute provided by some processors, and is
     designed to safely permit traditional code motion
     optimizations in the presence of asynchronous input /
     output.  Variables in asynchronous input / output lists
     implicitly have the ASYNCHRONOUS attribute in the
     scoping unit of that asynchronous READ or WRITE
     statement, but shall have the ASYNCHRONOUS attribute in
     the scope of the corresponding wait operation, if the
     wait operation is in a different scoping unit.   -- End
     Note
     
Add a new section, 9.2.10 (and renumber 9.2.10 and later
sections):

     9.2.10  ASYNCHRONOUS  statement
     
     R5xx      is  ASYNCHRONOUS  [::]  object-name-list
     
     The ASYNCHRONOUS statement specifes the ASYNCHRONOUS
     attribute for a list of objects..
     
In rule R905 (OPEN statement connect-spec), add, after PAD=
(on its own line)(pg. 140):
     or  ASYNCHRONOUS

Add section 9.3.4.11 (page 142/143):

     9.3.4.11  ASYNCHRONOUS specifier in the OPEN statement

     If the ASYNCHRONOUS specifier is specified for a unit
     in an OPEN statement, then READ and WRITE statements
     for  that unit may include the ASYNCHRONOUS specifier
     in the control information list.

     The presence of an ASYNCHRONOUS specifier in a READ or
     WRITE statement permits (but does not require) a
     processor to perform the data transfer asynchronously.
     The WAIT, CLOSE, and file positioning statements may be
     used to wait for asynchronous input / output operations
     to complete, and the INQUIRE statement may be used to
     inquire whether or not asynchronous input / output
     operations have completed.

Note to the reader: the above rules imply only external unit
input / output may specify an ASYNCHRONOUS specifier for
READs and WRITEs, since internal files are not OPENed.

In section 9.3.5 (CLOSE statement), page 143, add the
following paragraph and
notes after line 5:

     Execution of a CLOSE statement causes the processor to
     wait for all pending data transfer operations for the
     specified unit to complete.

     Note:  A pending data transfer operation exists when a
     READ or WRITE statement with  the ASYNCHRONOUS
     specifier is executed, but the corresponding wait
     operation has not yet been executed.

     If a CLOSE statement is executed for a unit with
     pending data transfer operations, that CLOSE statement
     is considered to be the corresponding wait operation
     for the READ or WRITE statements that initiated those
     pending data transfer operations, and the CLOSE
     statement is considered to be a data transfer statement
     for purposes of end of file, eond of record, and error
     processing.

     
     If the CLOSE statement corresponding to one or more
     asynchronous READ or WRITE statements is in a different
     scoping unit than the READ or WRITE statements, then
     every accessible variable in the input / output lists
     (including implied-do-variables) or namelists, and the
     variable specified in the SIZE= specifier, if any,
     shall have the ASYNCHRONOUS attribute, or shall be a
     subobject  of an object with the ASYNCHRONOUS
     attribute, in the scoping unit of that CLOSE statement.
     When a namelist group name is specified in an
     input/output statement,  variables in the namelist
     group which are not actually read or written by the
     input/output statement do not need to have the
     ASYNCHRONOUS attribute in the scope of the CLOSE
     statement.

In rule 912 (io-control-spec) (page 144), add:

     or  ASYNCHRONOUS
     or  ID = scalar-default-int-variable

Add the following constraint after the constraint on line
19, page 145:

     Constraint: An ASYNCHRONOUS specifier shall be present
     if an ID= specifier is  present.
     
     Constraint: An ASYNCHRONOUS specifier shall not be
     specified if the io-unit is an internal-file-unit.

 Note to the reader: the first constraint implies an ID=
specifier, typically used in
a corresponding WAIT statement, is NOT required in an
asynchronous READ or WRITE statement.  The user would have
to CLOSE the unit (or execute another wait operation) before
referencing any storage locations in an input list or
namelist, and to NOT define any storage locations referenced
by an output list or namelist in an output statement.  This
allows a knowledgeable user to READ or WRITE massive amounts
of data to a file, without ever waiting for completion,  as
long as they close the file or perform some other wait
operation before modifying/referencing any storage locations
referenced by an input / output list or namelist.

In section 9.4.1.9 (page 147), first sentence, insert

     without an ASYNCHRONOUS specifier

before "terminates", and add the following as the last
sentence of that paragraph:

     If an ASYNCHRONOUS specifier is present, the variable
     specified in the SIZE= specifier, if any, will become
     defined, with the value described above, when the wait
     operation corresponding to the non-advancing input
     statement is executed.  If an asynchronous data
     transfer statement appears in a different scoping unit
     than its corresponding wait operation, then the
     variable specified in the SIZE= specifier, if
     accessible, shall have the ASYNCHRONOUS attribute, or
     shall be a subobject  of an object with the
     ASYNCHRONOUS attribute, in the scoping unit of the
     corresponding wait operation.

     Note: A CLOSE, INQUIRE or a file positioning statement,
     as well as a WAIT  statement, can be a wait operation
     (9.3.5).


Insert a new section:

     9.4.1.10  Asynchronous specifier
     
     The ASYNCHRONOUS specifier indicates that this data
     transfer operation can be performed asynchronously.
     Records read or written by asynchronous data  transfer
     statements will be read, written, and processed in the
     same order as they would have been if the data transfer
     statement did not contain the ASYNCHRONOUS specifier.
     
     The ASYNCHRONOUS specifier shall not be present in a
     READ or WRITE statement unless the OPEN statement for
     the unit referenced in the READ or WRITE statement
     contained an ASYNCHRONOUS specifier.
     
     When a data transfer statement with the ASYNCHRONOUS
     specifier  is executed, the program shall not execute
     any statements that would cause any variable in the
     input / output list, namelist, any do-variable in the
     item list, or the variable specified in a SIZE=
     specifier  to become undefined  as described in 14.7.6,
     until the corresponding wait operation is performed.
     When a namelist group name is specified in input/output
     statement with the ASYNCHRONOUS specifier, any
     variables in the namelist group which are not actually
     read or written by the input/output statement are not
     subject to the restrictions described in this
     paragraph.
     
     When a data transfer statement with the ASYNCHRONOUS
     specifier  is executed, the program shall not execute
     any statements which would cause the pointer
     association status of any variable in the input /
     output list, namelist, any do-variable in the item
     list, or a variable specified in the SIZE= specifier to
     change, or would cause any such variable to become
     associated with a different target, as described in
     14.6.2, until the corresponding wait operation is
     performed.  When a namelist group name is specified in
     an input/output statement, variables in the namelist
     group not actually read or written by the input/output
     statement are not subject to the  restrictions
     deescribed in this paragraph..
     
     Note: These last two restrictions ensure that certain
     variables referenced in asynchronous data transfer
     statements must still exist and reference the same
     storage locations when the corresponding wait operation
     is performed, including the implicit CLOSE for open
     units when a program is exiting.
     
     When an input data transfer statement with the
     ASYNCHRONOUS specifier is executed, the input list or
     namelist items, and any implied-do-variables, and the
     variables specified in the SIZE= specifier, if any,
     become undefined until the corresponding wait operation
     is executed (9.3.5, 9.5).  When a namelist group name
     is specified in an input/output statement,  variables
     in the namelist group not actually read or written by
     the input/output statement do not become undefined.
     
     When an output data transfer statement with the
     ASYNCHRONOUS specifier is executed, the output list or
     namelist items, and any implied-do-variables in the
     item list,  shall not be redefined until the
     corresponding wait operation is executed (9.3.5, 9.5).
     When a namelist group name is specified in such an
     input/output statement,  variables in the namelist
     group not actually read or written by the input/output
     statement may be redefined before the corresponding
     wait operation.
     
     When an output data transfer statement with the
     ASYNCHRONOUS specifier is executed, any implied-do-
     variables  in the item list become undefined untiil the
     corresponding wait operation is performed, at which
     tiime is becomes defined with the value it would have
     at the end of execution of the original READ or WRITE
     statement if that statement had not specified the
     ASYNCHRONOUS specifier.
     
     When an input/output data transfer statement with the
     ASYNCHRONOUS specifier is executed, all functions
     referenced in the item list shall be pure functions.
     
     Note:  This restriction on functions appearing in item
     lists for asynchronous data transfer statements applies
     to all function references, including those used in
     subscript, substring, and implied do loop calculations.
     End Note

Insert a new section 9.4.1.11:

     9.4.1.11  ID= specifier

     The ID= specifier identifies a variable which is
     assigned a processor dependent  value during the
     execution of an asynchronous data transfer statement.
     This  value can be used in a WAIT statement to force
     the processor to wait for a particular data transfer
     operation to complete.

In section 9.4.4, list item (5), change "namelist" to

     namelist,  except that if the ASYNCHRONOUS= specifier
     was also present, the entities specified in the
     input/output list or namelist become undefined

In section 9.4.4, list item (8), change "defined" to

     defined, except that a variable specified in a SIZE=
     specifier becomes undefined if an ASYNCHRONOUS
     specifier was also specified

In section 9.4.4.4, page 152, before the paragraph that
starts "On output ...", insert the following paragraphs:

     If an ASYNCHRONOUS specifier is specified on a data
     transfer statement, the actual list processing and data
     transfers may occur during execution of the input
     statement, during execution of the corresponding wait
     operation, or anywhere in-between.   The data transfer
     operation is considered to be a pending data transfer
     operation until a corresponding wait operation is
     performed.

     If an ASYNCHRONOUS specifier is specified on an input
     statement, the list items or namelist variables, any do-
     variable in the item list, and the variable specified
     in the SIZE= specifier, if any, become undefined until
     the corresponding wait operation is executed (9.3.5,
     9.5).  When a namelist group name is specified in an
     input/output statement,  variables in the namelist
     group not actually read by the input statement do not
     become undefined.
     
     If an ASYNCHRONOUS specifier is specified on an output
     statement, the list items or namelist variables, and
     any do-variable in the item list shall not be redefined
     until the corresponding wait operation is executed
     (9.3.5, 9.5).  When a namelist group name is specified
     in an output statement,  variables in the namelist
     group not actually written by the input/output
     statement are not subject to the restrictions described
     in this paragraph.
     
     When a data transfer operation is performed
     asynchronously, any errors which  would have caused the
     ERR= branch on a non-asynchronous READ or WRITE to be
     taken, and the IOSTAT variable to be defined with a non-
     zero value, may instead occur during execution of the
     corresponding wait operation (a WAIT, CLOSE,  INQUIRE
     or file positioning statement) and take the ERR= branch
     of that wait operation instead.  If an ID= specifier is
     not present in the initiating READ or WRITE statement,
     the errors may occur during the execution of any
     subsequent input / output statement on that same unit,
     and not just during the corresponding wait operation.

Insert a new section 9.5, and renumber every section
thereafter appropriately:
     
     9.5  WAIT statement
     
     Execution of a WAIT statement causes the processor to
     wait for some previously initiated asynchronous data
     transfers to complete.
     
         R919  wait-statement is  WAIT (wait-spec-list)
     
         R920  wait-spec      is  [UNIT = ] external-file-
     unit
                         or  IOSTAT = scalar-default-int-
     variable
                         or  ERR = label
                         or  ID = scalar-default-int-
     variable
                         or  END = label

     Constraint: A wait-spec-list shall contain exactly one
     external-file-unit specifier, and may contain at most
     one of each of the other specifiers.
     
     Constraint: If the optional characters UNIT= are
     omitted from the unit specifier, the unit specifier
     shall be the first item in the wait-spec-list.


    (note to Richard Maine: insert other appropriate
constraints, similar to the
    position-spec constraints, and one for the END=label
branch target)

     The IOSTAT=, ERR=, and END= specifiers are described in
     x, x, and x respectively.

     If an ID= specifier is not present, the processor waits
     for all pending data transfers on the specified unit to
     complete, if any.  If an ID= specifier is present, the
     processor waits for the corresponding READ or WRITE
     operation to complete.  The corresponding READ or WRITE
     operation is that READ or WRITE which returned the same
     value for the ID= specifier for the specified unit.
     The value specified for the ID= specifier shall be a
     value returned by a READ or WRITE statement for the
     specified unit, for which a corresponding wait
     operation has not been executed.

     The data transfer operation specified in the
     corresponding READ or WRITE statement may happen when
     the WAIT statement is executed, when the corresponding
     READ or WRITE statement was previously executed, or
     anytime in-between.  The WAIT statement is considered
     to be a data transfer statement for purposes of end of
     file, eond of record, and error processing.

     When the WAIT statement corresponding to a particular
     READ or WRITE statement is in a different scoping unit
     than the READ or WRITE statement, then every variable
     in the input / output list, namelist, any do-variable
     in the item list, or any variable specified in the
     SIZE= specifier, that is accessible, shall have the
     ASYNCHRONOUS attribute, or shall be a subobject  of an
     object with the ASYNCHRONOUS attribute, in the scoping
     unit of that WAIT statement.
     When a namelist group name is specified in an
     input/output statement,  variables in the namelist
     group not actually read or written by the input/output
     statement do not need to have the ASYNCHRONOUS
     attribute in the scope of that WAIT statement.
     
     Note: The CLOSE , INQUIRE, and file positioning
     statements, as well as the WAIT statement, can be a
     "wait" operation.
     
     Note: If an asynchronous READ attempts to read beyond
     the end of a file, then the end of file condition may
     occur either during execution of the READ statement or
     during execution of the  corresponding wait operation.
     If the end of file condition occurs during the wait
     operation, and there is not an END= or IOSTAT specifier
     in the statement which is the corresponding wait
     operation, then program execution terminates.  Error
     conditions are handled in a similar manner.
     
and renumber all subsequent rules.  (or insert the rule with
an used rule number?)

In the old section 9.5 (File Positioning statements), add
the following after
the last sentence in that section:

     Execution of a file positioning statement causes the
     processor to wait for all pending data transfer
     operations for the specified unit to complete.
     
      If a file positioning statement is executed for a unit
     with pending data transfer operations, that  statement
     is considered to be the corresponding wait operation
     for the READ or WRITE statements which initiated the
     pending data transfers, and is also considered to be an
     data transfer statement for purposes of end of file,
     error, and end of record processing.
     
     When a file positioning statement corresponding to one
     or more asynchronous  READ or WRITE statements is in a
     different scoping unit than the READ or WRITE
     statements, then every variable in those input / output
     lists, namelists, any do-variable in the item list,
     and the variable specified in a SIZE= specifier, that
     is accessible, shall have the ASYNCHRONOUS attribute,
     or shall be a subobject  of an object with the
     ASYNCHRONOUS attribute, in the scoping unit of that
     file positioning statement.  When a namelist group name
     is specified in an input/output statement,  variables
     in the namelist group not actually read or written by
     the input/output statement do not need the ASYNCHRONOUS
     attribute in the scoping unit of that file positioning
     statement.
     
In section 9.6.1, add the following to rule 924:
     or  ID = scalar-default-int-variable
     or  PENDING = scalar-default-logical-variable

and add these constraints around line 40 on page 156:
     Constraint: The ID=  and PENDING= specifiers shall not
     appear in an INQUIRE statement if the FILE = specifier
     is present.
     
     Constraint: If an ID= specifier is present, a PENDING=
     specifier shall also be present.
     
On page 159, add section 9.6.1.23
     9.6.1.23    ID= and PENDING= specifiers in the INQUIRE
       statement
     If an ID= specifier is not present in an INQUIRE
     statement, the variable specified in the PENDING=
     specifier is assigned the value true if there are any
     pending asynchronous data transfers for the specified
     unit which have not completed.  If an ID= specifier is
     present, the variable specified in the PENDING=
     specifier is assigned the value true if the data
     transfer identified by the ID= specifier for the
     specified unit has not yet completed.  In all other
     cases, the variable specified in the PENDING= specifier
     is set to false.
     
      If the variable specified in the PENDING= specifier is
     set to false, then the pending data transfer operations
     for this unit are considered to have completed, and
     this INQUIRE is the corresponding wait operation for
     the corresponding READ or WRITE statements.  When an
     ID= specifier is present, the corresponding operation
     is the READ or WRITE statement identified by the unit
     and ID= specifier value.  When an ID= specifier was not
     present, then this INQUIRE statement is the
     corresponding wait operation for all pending data
     transfer operations for the specified unit.  When the
     INQUIRE statement sets the variable specified in a
     PENDING= specifier to false annd there are pending data
     transfer operations, that INQUIRE statement is
     considered to be a data transfer statement for purposes
     of end of file, eond of record, and error processing.

In section 9.6.1.14,  add the following sentence as the last
sentence of the paragraph.
     If there are pending data transfer operations for the
     specified unit, the value assigned to the NEXTREC=
     specifier is computed as if all the pending data
     transfers had already completed.
     

Note to the reader:  the POSITION= specifier does not appear
to need any edits.

Note to the reader.  In section 14, we discuss events
causing definition and undefinition of variables.  In item
(3) of 14.7.5, we discuss when input causes an item to be
defined, in terms of when the data is transferred, so no
edit is needed in (3).  Note that the second part of (3)
applies to internal units, which cannot be written to
asynchronously.

In section 14.7.5, item (5), change an input/output
statement to an input/output statement without the
ASYNCHRONOUS specifier.

In section 14.7.5, item (8), change statement to
statement without an ASYNCHRONOUS specifier.

In section 14.7.5, insert this new item (9), and renumber
the remaining items:
     (9)  Execution of a READ statement containing both an
     ASYNCHRONOUS and a SIZE= specifier may cause the
     variable specified in the SIZE= specifier to become
     defined, or the corresponding wait operation may cause
     that variable to become defined.   Either the READ
     statement or the corresponding wait operation will
     cause that variable to become defined.

In section 14.7.6, item (4), change "input/output statement"
to "input/output statement or its corresponding wait
operation".

In section 14.7.6, item (5), change "input/output statement"
to "input/output statement or its corresponding wait
operation".

In section 14.7.6, item (7), change input statement to
input statement or its corresponding wait operation.

In section 14.7.6, add a new item (16) (the editor may
relocate to another part of the list if desired):
     Execution of a READ or WRITE statement with the
     ASYNCHRONOUS specifier causes all variables in the item
     list or namelist, all implied-do-variables in the item
     list, and the variable specified in the SIZE=
     specifier, if any, to become undefined.  Variables in a
     namelist group specified in such a READ or WRITE
     statement which are not actually read or written by the
     input/output statement do not become undefined.
     
Rationale: may be inserted in the appropriate annex if
desired.

Rationale for Asynchronous I/O

Rather than limit support for asynchronous I/O to what has
been traditionally provided by facilities such as BUFFERIN-
BUFFEROUT, this standard provides a more consistent, Fortran-
like syntax.  This permits the maximum possible level of
support for asynchronous I/O, as well as simplifying the
task of adapting existing standard conforming programs to
utilize asynchronous I/O.

Not all processors will actually provide support for
asynchronous I/O, nor will every processor which does
support asynchronous I/O be able to handle data transfer
statements with complicated I/O item lists in an
asynchronous manner.  Such processors can still be standard
conforming.   Hopefully, the documentation for each Fortran
processor will describe when, if ever, asynchronous I/O will
be performed.

Conceptual Model

This proposal accomodates two different conceptual models
for asynchronous I/O.

Model 1:
     the processor will only perform asynchronous I/O when
     the I/O list is sufficiently simple (perhaps one named
     array, contiguous (not assumed shape), and possibly
     only when doing unformatted I/O.
     
     The primary impact of this model is that no processor
     is ever required to do asynchronous I/O.  Hence, the
     either/or requirement on ERR and EOF processing (either
     during the initial read/write, or at the wait
     operatrion).  Also, none of the complicated issues with
     I/O list interactions need to be dealt with (like  READ
     (...) N, (a(i),i=1,N) )

Model 2: The processor is free to do any of the following:
    on output, create a buffer inside the I/O library,
     completely formatted, and then start an async write of
     the buffer, and immediately return to the next
     statement in the program.  The processor is free wait
     for previously issued WRITEs,  or not.
  
        OR
  
    pass off the I/O list to another processor/process,
     which will process the list items independently of the
     processor which executes the users code.  There is
     still an ordering requirement on list item processing,
     to handle things like READ (...) N,(a(i),i=1,N).  But
     there are restrictions on the user to ensure that
     function calls in the i/o list, and implied-do-
     variables, are free to be called/defined
     asynchronously.  Hence the requirement that an implied-
     do-variable not be referenced or redefined by any other
     statement, imcluding  another I/O statement, until the
     matching wait operation is executed, and that functions
     called as part of evaluating the I/O list be PURE.

One source of confusion is the role of the ID= values and
wait operations.
The standard allows a user to issue an infinite number of
asnyc I/O requests, without waiting for any of them to
complete, and to then wait for any or all of them.  This
might seem to place a requirement on the runtime library to
keep trrack of all these outstanding requests, which is an
impossible and undesirble task.  The overhead is immense.
So, the model I used to guide the edits is:
    not all requests need be tracked by the runtime.   When
     the user does NOT specify an ID= specifier on a READ or
     WRITE, the runtime is free to forget about this
     particular request once it has successfully completed.
     If it gets an ERR or END condition, the processor is
     free  to report this during any I/O operation to that
     unit.
  
    When an ID=specifier is present, the runtime is
     required to keep track of  any END or ERR conditions
     for that specific I/O request.  However, if the I/O
     request succeeds without any exceptional conditions
     occuring, then the runtime can forget about that ID=
     value if it wishes.  Typically, I except a runtime to
     only keep track of the last request made, or perhaps a
     very few.  Then, when a user WAITs for a particular
     request, either the library knows about it (and does
     the right thing w.r.t. error handling, etc.), or will
     assume it is one of those requests which successfully
     completed and was forgotten about (and will just return
     without signaling any end/err conditions).  It is
     encumbent on the user to only pass in valid ID= values.
     There is no requirement on the processor to detetct
     invalid ID= values.
  
    There is of course, a processor dependent limit on how
     many outstanding I/O requests which generate an END or
     ERROR condition can be handled before the processor
     runs out of memory to keep track of such stuff.
  
    The restrictions on the SIZE= variables are designed to
     allow the processor to update such variables at any
     time (after the request has been processed, but before
     the WAIT operation), and to then forget about them.
     That's why there is no SIZE= specifier allowed in the
     various WAIT operations.  Only an exceptional condition
     (errors or EOFs) are expected to be tracked by
     individual request by the runtime, and then only if an
     ID= specifier was present.
  
    The EOR= specifier has not been added to the WAIT
     operatioons.  Instead, the IOSTAT variable will have to
     be queried after a WAIT operation to handle this
     situation.  This choice was made because an EOR
     condition is not perceived to be an exceptional
     condition, like those that trigger and END= or ERR=
     branch.   This particular choice is philosophical, and
     was not based on significant technical difficulties.
     Note that the requirement to set the IOSTAT variable
     correctly  requires an implementation to remember which
     I/O requests got an EOR condition, so that a subsequent
     wait operation will return the correct IOSTAT value.
     This means there is a processor defined limit on the
     number of outstanding I/O requests (non-advancing)
     which got an EOR condition (constrained by available
     memory to keep track of this info, similar to END/ERR
     conditions).
  

---------------------------------------------------------------------------
To (un)subscribe to this list, send mail to hpff-core-request@cs.rice.edu.
Leave the subject line blank, and in the body put the line
(un)subscribe <email-address>
---------------------------------------------------------------------------

