public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/35625] New: schedule(guided) loops forever if ((end - start) % incr) != 0
@ 2008-03-18 9:06 jakub at gcc dot gnu dot org
2008-03-18 9:55 ` [Bug libgomp/35625] " jakub at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-18 9:06 UTC (permalink / raw)
To: gcc-bugs
int
main (void)
{
#pragma omp parallel
{
#pragma omp for schedule (guided, 10)
for (int i = 0; i < 1826; i += 10)
;
#pragma omp for schedule (guided, 10)
for (int i = 0; i > -1826; i -= 10)
;
}
return 0;
}
hangs - after going through all iterations keeps calling GOMP_*_next forever,
each time returning true and assigning an empty range.
--
Summary: schedule(guided) loops forever if ((end - start) % incr)
!= 0
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: openmp
Severity: normal
Priority: P3
Component: libgomp
AssignedTo: jakub at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35625
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgomp/35625] schedule(guided) loops forever if ((end - start) % incr) != 0
2008-03-18 9:06 [Bug libgomp/35625] New: schedule(guided) loops forever if ((end - start) % incr) != 0 jakub at gcc dot gnu dot org
@ 2008-03-18 9:55 ` jakub at gcc dot gnu dot org
2008-03-18 9:56 ` jakub at gcc dot gnu dot org
2008-03-18 9:57 ` jakub at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-18 9:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jakub at gcc dot gnu dot org 2008-03-18 09:55 -------
Subject: Bug 35625
Author: jakub
Date: Tue Mar 18 09:54:21 2008
New Revision: 133306
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133306
Log:
PR libgomp/35625
* iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
(gomp_iter_guided_next): Likewise.
* testsuite/libgomp.c/pr35625.c: New test.
Added:
trunk/libgomp/testsuite/libgomp.c/pr35625.c
Modified:
trunk/libgomp/ChangeLog
trunk/libgomp/iter.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35625
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgomp/35625] schedule(guided) loops forever if ((end - start) % incr) != 0
2008-03-18 9:06 [Bug libgomp/35625] New: schedule(guided) loops forever if ((end - start) % incr) != 0 jakub at gcc dot gnu dot org
2008-03-18 9:55 ` [Bug libgomp/35625] " jakub at gcc dot gnu dot org
@ 2008-03-18 9:56 ` jakub at gcc dot gnu dot org
2008-03-18 9:57 ` jakub at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-18 9:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2008-03-18 09:55 -------
Subject: Bug 35625
Author: jakub
Date: Tue Mar 18 09:55:09 2008
New Revision: 133307
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133307
Log:
PR libgomp/35625
* iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
(gomp_iter_guided_next): Likewise.
* testsuite/libgomp.c/pr35625.c: New test.
Added:
branches/gcc-4_3-branch/libgomp/testsuite/libgomp.c/pr35625.c
Modified:
branches/gcc-4_3-branch/libgomp/ChangeLog
branches/gcc-4_3-branch/libgomp/iter.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35625
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libgomp/35625] schedule(guided) loops forever if ((end - start) % incr) != 0
2008-03-18 9:06 [Bug libgomp/35625] New: schedule(guided) loops forever if ((end - start) % incr) != 0 jakub at gcc dot gnu dot org
2008-03-18 9:55 ` [Bug libgomp/35625] " jakub at gcc dot gnu dot org
2008-03-18 9:56 ` jakub at gcc dot gnu dot org
@ 2008-03-18 9:57 ` jakub at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-18 9:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2008-03-18 09:57 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35625
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-18 9:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-18 9:06 [Bug libgomp/35625] New: schedule(guided) loops forever if ((end - start) % incr) != 0 jakub at gcc dot gnu dot org
2008-03-18 9:55 ` [Bug libgomp/35625] " jakub at gcc dot gnu dot org
2008-03-18 9:56 ` jakub at gcc dot gnu dot org
2008-03-18 9:57 ` jakub at gcc dot gnu dot 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).