This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgomp/40494] omp for loop with guided schedule fails to terminate in certain cases



------- Comment #1 from jakub at gcc dot gnu dot org  2009-07-10 10:43 -------
Sorry, can't reproduce this.

extern void abort (void);

int
main (void)
{
  int x, y = 0;
  #pragma omp parallel for schedule(guided) reduction(+:y)
  for (x = 3; x < 478; x += 2)
    y++;
  if (y != 238)
    abort ();
  return 0;
}

works just fine with current 4.4 or trunk, both x86_64-linux -m32 and -m64,
OMP_NUM_THREADS={1,2,4,8,16,32,64}.  Are you sure you were not testing
everything against gcc 4.2 libgomp.so?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40494


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]