anyone know the semantics for _gfortran_caf_this_image(0)?
Steve Kargl
sgk@troutmask.apl.washington.edu
Mon Jan 8 21:26:00 GMT 2018
Thanks for the insight.
--
steve
On Mon, Jan 08, 2018 at 09:58:32PM +0100, Andre Vehreschild wrote:
> Hi Steve,
>
> Nop the 0 in caf_this_image() indexes the team for which the current images number is queried. At least that was the plan in the initial design. So supplying 0 is safe.
>
> Regards,
> Andre
>
> Am 8. Januar 2018 20:55:15 MEZ schrieb Steve Kargl <sgk@troutmask.apl.washington.edu>:
> >Well, I have a fully functional RANDOM_INIT implemented with
> >the caveat that I have no idea what _gfortran_caf_this_image(0)
> >does.
> >
> >If I compile
> >
> >function foo() result(n)
> > integer n
> > n = this_image()
> >end function foo
> >
> >with -fdump-tree-original -fcoarray=lib -c, I see
> >
> >foo ()
> >{
> > integer(kind=4) n;
> > n = _gfortran_caf_this_image (0);
> > return n;
> >}
> >
> >I assume the argument 0 tells _gfortran_caf_this_image to
> >return the image index of the current image. Is this correct?
>
> --
> Andre Vehreschild * Kreuzherrenstr. 8 * 52062 Aachen
> vehre@gmx.de * Tel. +49 178 3837536
--
Steve
20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4
20161221 https://www.youtube.com/watch?v=IbCHE-hONow
More information about the Fortran
mailing list