Re: Co-Array Fortran
- From: Dan Nagle <dannagle@xxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 02:00:16 GMT
Hello,
gary.l.scott@xxxxxxxx wrote:
Sure, I'm just not sure there aren't problems where it would be
critical to know whether the referenced array is a local one or a
remote one. It seems like there needs to be an inquiry routine to
tell whether it is local or remote and maybe in rare cases, copy local
for performance reasons or some other reason. Anyway, it isn't that
important that I understand since it's unlikely I'll ever use it.
If co-arrays are confusing, simplify the issue by considering
a co-scalar.
There is one of each co-scalar on each image.
For example, given the declaration
integer :: i [*]
then in the executable
i = i + i[np]
means to add to the local i
the value of the i on processor np.
If np == this_image() then
it's the same as i = i + i
It really is simpler than you're making it.
--
Dan Nagle
Purple Sage Computing Solutions, Inc.
.
- 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
- Re: Co-Array Fortran
- From: Walter Spector
- 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):