[gomp4] Make OpenACC orphan gang reductions errors
Cesar Philippidis
cesar@codesourcery.com
Tue May 2 01:32:00 GMT 2017
This patch promotes all OpenACC gang reductions on orphan loops as
errors. Accord to the spec, orphan loops are those which are not
lexically nested inside an OpenACC parallel or kernels regions. I.e.,
acc loops inside acc routines.
At first I thought this could be a warning because the gang reduction
finalizer uses an atomic update. However, because there is no
synchronization between gangs, there is way to guarantee that reduction
will have completed once a single gang entity returns from the acc
routine call.
I've applied this patch to gomp-4_0-branch.
Cesar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gomp4-orphan-reductions.diff
Type: text/x-patch
Size: 20435 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170502/fb14311f/attachment.bin>
More information about the Fortran
mailing list