Re: Co-Array Fortran
- From: Dan Nagle <dannagle@xxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 00:04:37 GMT
Hello,
gary.l.scott@xxxxxxxx wrote:
On Oct 30, 6:41 pm, Dan Nagle <danna...@xxxxxxxxxxx> wrote:Hello,
A co-array element is local if and only if either:
There is no [] on the reference
-or-
The value of the index(es) indicates the this image
from walter spector
"a(i) = b(i) + c(i)[np]
The A and B references are local. But C is a coarray, and so would
load values from coarray process 'np'. (Which may or may not be local
-
depending on the value of np.) "
the last sentence seems to imply that with a [np] reference present,
it could denote either a local or remote reference depending on the
value. that superficially seem to conflict.
Superficially? np is the value of the (co-)index,
and it may (or may not) indicate a reference to a different image.
If np indicates this image, it doesn't.
Else, it does. There may be an efficiency concern
since the compiler may emit instructions if it can't resolve
things during compilation.
It's similar to a(i) = a(j) may (or may not) thrash cache,
depending upon whether i and j indicate data currently in cache.
The difference is that the images are fixed (in every implementation
I've seen so far), where cache is dynamic.
--
Dan Nagle
Purple Sage Computing Solutions, Inc.
.
- Follow-Ups:
- Re: Co-Array Fortran
- From: Fly Away
- Re: Co-Array Fortran
- References:
- Co-Array Fortran
- From: gary . l . scott
- Re: Co-Array Fortran
- From: Dan Nagle
- Re: Co-Array Fortran
- From: Gary Scott
- Re: Co-Array Fortran
- From: Walter Spector
- Re: Co-Array Fortran
- From: gary . l . scott
- Re: Co-Array Fortran
- From: Dan Nagle
- Re: Co-Array Fortran
- From: gary . l . scott
- Co-Array Fortran
- Prev by Date: Re: Co-Array Fortran
- Next by Date: Re: Co-Array Fortran
- Previous by thread: Re: Co-Array Fortran
- Next by thread: Re: Co-Array Fortran
- Index(es):
Relevant Pages
|