Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: MPI code er...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 29 of 35 Topic 8214 of 8908
Post > Topic >>

Re: MPI code error raises a question

by Dick Hendrickson <dick.hendrickson@[EMAIL PROTECTED] > May 9, 2008 at 06:02 PM

Richard Maine wrote:
> glen herrmannsfeldt <gah@[EMAIL PROTECTED]
> wrote:
> 
>> Richard Maine wrote:
>> (snip)
>>
>>> What you are looking for is the VOLATILE attribute. Memory addresses
>>> that get updated via means independent of the Fortran program are
>>> exactly the kind of thing VOLATILE is about.
>> That is the way it looks to me, for VOLATILE:
>>
>>    "An allocatable object with the VOLATILE attribute may
>>     additionally have its allocation status, dynamic type
>>     and type parameters, and array bounds changed by means
>>     not specified by the program."
>>
>> I thought for MPI that only the data would change,
> 
> Most likely, but that seems irrelevant. Something doesn't actually
> *HAVE* to do every single thing that VOLATILE allows in order to be
> appropriate for VOLATILE. Many things can use VOLATILE MPI is one of
> them.
> 
>> and that
>> (even though intended for Fortran ASYNCHRONOUS I/O) that
>> ASYNCHRONOUS might be more appropriate.

I think people, especially Glen?, are confused about what
ASYNCHRONOUS means.  It basically provides a set of restrictions
on the user and hardly any restrictions on the compiler.  If
a variable is in a pending input/output sequence (meaning it
has the ASYNCHRONOUS attribute and is in an unWAITed for
I/O transfer) then the user is not allowed to reference or define
it if it's in an input transfer and not allowed to define it if
it's in an output transfer.  (F2003 page 195, around line 10,
gives the gory details.)

This means that in a code snippet like
       asynchronous  ::  x,y
          ...
       x = y + y
the compiler doesn't have to do anything special.  It is the
users responsibility to guarantee that x and y aren't in an
active i/o statement of the wrong kind.

This is totally different from VOLATILE where the compiler is
encouraged to fetch variables from memory and store them back
as soon as it can.

About the only compiler restrictions for ASYNCHRONOUS is
prevention of code motion across WAIT statements (and this
applies to any call statement where the compiler can't
analyze the callee well enough) and an effective prohibition
of copy-in/copy-out argument passing of asynchronous variables.



Dick Hendrickson

> 
> So MPI doesn't fit VOLATILE because it doesn't use every possible arcane
> part of VOLATILE, but it does fit ASYNCHRONOUS even though it doesn't
> have anything to do with any of the statements that relate to
> ASYNCRONOUS? The logic here escapes me.
>
 




 35 Posts in Topic:
MPI code error raises a question
Gib Bogle <bogle@[EMAI  2008-05-08 08:42:32 
Re: MPI code error raises a question
Steve Lionel <Steve.Li  2008-05-07 17:08:25 
Re: MPI code error raises a question
Gib Bogle <bogle@[EMAI  2008-05-08 10:22:33 
Re: MPI code error raises a question
nospam@[EMAIL PROTECTED]   2008-05-07 16:04:48 
Re: MPI code error raises a question
lindahl@[EMAIL PROTECTED]  2008-05-07 18:29:28 
Re: MPI code error raises a question
nospam@[EMAIL PROTECTED]   2008-05-07 20:40:24 
Re: MPI code error raises a question
Janne Blomqvist <foo@[  2008-05-08 10:02:00 
Re: MPI code error raises a question
Dan Nagle <dannagle@[E  2008-05-08 10:03:20 
Re: MPI code error raises a question
glen herrmannsfeldt <g  2008-05-08 03:57:33 
Re: MPI code error raises a question
Dan Nagle <dannagle@[E  2008-05-08 12:25:37 
Re: MPI code error raises a question
glen herrmannsfeldt <g  2008-05-08 04:44:48 
Re: MPI code error raises a question
Dick Hendrickson <dick  2008-05-08 14:22:01 
Re: MPI code error raises a question
Dan Nagle <dannagle@[E  2008-05-08 15:13:43 
Re: MPI code error raises a question
Dick Hendrickson <dick  2008-05-08 20:15:17 
Re: MPI code error raises a question
glen herrmannsfeldt <g  2008-05-08 12:40:23 
Re: MPI code error raises a question
Dan Nagle <dannagle@[E  2008-05-08 20:57:58 
Re: MPI code error raises a question
Dan Nagle <dannagle@[E  2008-05-08 20:52:32 
Re: MPI code error raises a question
Ron Shepard <ron-shepa  2008-05-08 23:42:48 
Re: MPI code error raises a question
nospam@[EMAIL PROTECTED]   2008-05-08 22:21:17 
Re: MPI code error raises a question
Dan Nagle <dannagle@[E  2008-05-08 15:11:27 
Re: MPI code error raises a question
Gordon Sande <g.sande@  2008-05-08 12:25:28 
Re: MPI code error raises a question
lindahl@[EMAIL PROTECTED]  2008-05-08 00:10:11 
Re: MPI code error raises a question
Gib Bogle <g.bogle@[EM  2008-05-08 18:56:29 
Re: MPI code error raises a question
GaryScott <garylscott@  2008-05-08 14:45:58 
Re: MPI code error raises a question
glen herrmannsfeldt <g  2008-05-08 14:47:05 
Re: MPI code error raises a question
nospam@[EMAIL PROTECTED]   2008-05-08 16:44:30 
Re: MPI code error raises a question
glen herrmannsfeldt <g  2008-05-08 16:00:49 
Re: MPI code error raises a question
nospam@[EMAIL PROTECTED]   2008-05-08 17:58:22 
Re: MPI code error raises a question
Dick Hendrickson <dick  2008-05-09 18:02:15 
Re: MPI code error raises a question
glen herrmannsfeldt <g  2008-05-09 12:02:15 
Re: MPI code error raises a question
Gary Scott <garylscott  2008-05-08 20:24:08 
Re: MPI code error raises a question
Herman D. Knoble <Skip  2008-05-08 07:40:20 
Re: MPI code error raises a question
Herman D. Knoble <Skip  2008-05-08 07:52:30 
Re: MPI code error raises a question
Gib Bogle <g.bogle@[EM  2008-05-13 17:10:25 
Re: MPI code error raises a question
Herman D. Knoble <Skip  2008-05-13 12:59:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Nov 19 7:51:23 CST 2008.