public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/96459] New: OpenMP host teams reductions ignored
@ 2020-08-04 14:47 jakub at gcc dot gnu.org
  2020-08-04 14:49 ` [Bug middle-end/96459] " jakub at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-08-04 14:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96459
           Summary: OpenMP host teams reductions ignored
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

#include <stdlib.h>

int
main ()
{
  int niters = 0, i, j, k;
  #pragma omp teams reduction(+:niters)
  {
    #pragma omp distribute collapse(3)
    for (i = 0; i < 3; i++)
      for (j = 0; j < 8; j += 2)
        for (k = 0; k < 25; k += 3)
          niters++;
  }
  if (niters != 96)
    abort ();
  return 0;
}

is miscompiled, nothing performs the reduction on niters.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-09-16 19:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-04 14:47 [Bug middle-end/96459] New: OpenMP host teams reductions ignored jakub at gcc dot gnu.org
2020-08-04 14:49 ` [Bug middle-end/96459] " jakub at gcc dot gnu.org
2020-08-04 14:57 ` jakub at gcc dot gnu.org
2020-08-04 14:59 ` jakub at gcc dot gnu.org
2020-08-05  8:44 ` cvs-commit at gcc dot gnu.org
2020-08-25 17:44 ` cvs-commit at gcc dot gnu.org
2020-09-16 19:22 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).