https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126777

--- Comment #12 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Steve Kargl from comment #11)
--- snip ---
> 
> % gfcx -o z pi.f90 
> pi.f90:10:38:
> 
>    10 |     real(dp), allocatable :: partial[:]
>       |                                      1
> Fatal Error: Coarrays disabled at (1), use '-fcoarray=' to enable
> compilation terminated.
> 
> % gfcx -o z pi.f90 -fcoarray=single
> % ./z
> pi =    3.141592653590426
> images = 1
> intervals = 100000000
> % gfcx -o z pi.f90 -fcoarray=shared
> % ./z
> Fortran runtime error: After restarting images 4001 times, no common state
> on shared memory could be reached. Giving up...
> 
> (Whoops caf_shmem library seems to have an issue on FreeBSD.  Let's
> try to run 'z' again.)
> 
> % ./z
> pi =    3.141592653589883
> images = 16
> intervals = 100000000
> 
> I submitted a patch a long time ago to implement the change.
> Don't remember if it got reject, if it got reviewed, or I just
> lost interest.

Can you provide this test case so I can see what it is doing with some of my
patchwork?

Reply via email to