[Fortran, Patch] Memory sync after coarray image control statements and assignment
Tobias Burnus
tobias.burnus@physik.fu-berlin.de
Mon Dec 7 10:06:00 GMT 2015
I wrote:
> I wonder whether using
>
> __asm__ __volatile__ ("":::"memory");
>
> would be sufficient as it has a way lower overhead than
> __sync_synchronize().
Namely, something like the attached patch.
Regarding the original patch submission: Is there a reason that you didn't
include the test case of Deepak from https://gcc.gnu.org/ml/fortran/2015-04/msg00062.html
It should work as -fcoarray=lib -lcaf_single "dg-do run" test.
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: caf.diff
Type: text/x-diff
Size: 5211 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20151207/21ce400a/attachment.bin>
More information about the Fortran
mailing list