Re: Co-Array Fortran



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.
.



Relevant Pages

  • Re: OO question
    ... not the entry already exists, I want to set-up some aspects of my object ... and make changes to it later depending on some condition. ... Anything you can do to a normal hash, you can do to an object. ... out of a reference to a scalar, an array, a filehandle, or pretty much ...
    (perl.beginners)
  • Re: Really weird COBOL behavior
    ... > of elements of the array and that the DEPENDING ON clause was simply to ... That applies not just to the direct reference to the table ... That standard also clarifies the combination of ODO and RECORD ...
    (comp.lang.cobol)
  • If statement referencing a VBA Form
    ... Can you use a field to reference a selection made on a VBA form? ... Depending on whether the Grantor is a person or company there are two ... On my vba form there are option buttons - individualor company. ...
    (microsoft.public.word.vba.general)
  • Re: Access VB and Serial Communication
    ... The following articles may be ... a good reference, depending on your exact needs. ...
    (microsoft.public.access.modulesdaovba)
  • Re: firefox error on page refreshing
    ... colored border on them depending on if they are selected or mouse ... or exists at the time) a reference to an element with the ID ... you are reading the id off an element and then using that to ...
    (comp.lang.javascript)