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.

Reply via email to