This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/40494] omp for loop with guided schedule fails to terminate in certain cases
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2009 10:43:34 -0000
- Subject: [Bug libgomp/40494] omp for loop with guided schedule fails to terminate in certain cases
- References: <bug-40494-17858@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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