[Bug middle-end/70626] bogus results in 'acc parallel loop' reductions
cesar at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 11 15:52:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70626
--- Comment #2 from cesar at gcc dot gnu.org ---
Created attachment 38238
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38238&action=edit
counter example
I looked at the standard again, and it says that the reduction clause should be
associated with the acc loop. That does make sense because if it were
duplicated, then as my counter example shows, the final reduction value would
be num_gangs times larger than it would be if there were only one reduction
clause.
I'll see what the acc technical committee says about this.
More information about the Gcc-bugs
mailing list