public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* [Fortran] Help with STAT= attribute in coarray reference
@ 2016-06-07  0:06 Alessandro Fanfarillo
  2016-06-13 17:16 ` Alessandro Fanfarillo
  0 siblings, 1 reply; 12+ messages in thread
From: Alessandro Fanfarillo @ 2016-06-07  0:06 UTC (permalink / raw)
  To: gfortran

Dear all,

the FAILED IMAGES capability, as defined in the coarray TS 18508,
requires the presence of a "STAT=" attribute on each synchronization
statement and coarray reference in order to detect the possible loss
of one or more images.
So far, GFortran allows to pass to every synchronization statement the
STAT= attribute; the main change involves the coarray reference
syntax.

For example, the following code:

integer,dimension(10) :: a[*]

a = this_image()

sync all

if(this_image == 1) then
  a(:) = a(:)[num_images()]
endif

becomes:

integer,dimension(10) :: a[*]
integer :: stat

a = this_image()

sync all (stat=stat)

if(this_image == 1) then
  a(:) = a(:)[num_images(), stat = stat] <---- !!
endif

Do you have any idea/suggestion on how to implement this in GFortran?

Thank you in advance.

Alessandro

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-07-22  9:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-07  0:06 [Fortran] Help with STAT= attribute in coarray reference Alessandro Fanfarillo
2016-06-13 17:16 ` Alessandro Fanfarillo
2016-06-13 18:31   ` Mikael Morin
2016-06-13 22:49     ` Alessandro Fanfarillo
2016-06-20 20:01     ` Alessandro Fanfarillo
2016-06-22 16:28       ` Alessandro Fanfarillo
2016-06-23 20:45       ` Mikael
2016-06-30  4:05         ` Alessandro Fanfarillo
2016-07-04 20:41           ` Mikael Morin
2016-07-05 15:34             ` Alessandro Fanfarillo
2016-07-21 12:58               ` Andre Vehreschild
2016-07-22  9:48                 ` [Fortran, patch, committed] " Andre Vehreschild

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).