public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/45192]  New: OpenMP fails in DLLs
@ 2010-08-05  9:12 john at quivinco dot com
  2010-08-05  9:42 ` [Bug libgomp/45192] " rguenth at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: john at quivinco dot com @ 2010-08-05  9:12 UTC (permalink / raw)
  To: gcc-bugs

I have an OpenMP code segment:

#pragma omp parallel for
for (i = 0; i < size; i++)

Built with mingw gcc 4.4.0. Run on Windows XP SP3, AMD 64 Athlon FX62 dual
core.

Run in an exe application it works fine, however when invoked as code in a DLL
the for loop threads do not increment properly and the loop runs infinitely
repeating the same values of i.

eg:
19 thread 0
26936 thread 1
20 thread 0
0 thread 1
21 thread 0
19 thread 1
22 thread 0
20 thread 1
21 thread 1
23 thread 0
22 thread 1
0 thread 0
23 thread 1
19 thread 0
24 thread 1
20 thread 0
...


-- 
           Summary: OpenMP fails in DLLs
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: john at quivinco dot com


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


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

end of thread, other threads:[~2010-08-17 11:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-05  9:12 [Bug libgomp/45192] New: OpenMP fails in DLLs john at quivinco dot com
2010-08-05  9:42 ` [Bug libgomp/45192] " rguenth at gcc dot gnu dot org
2010-08-05 12:40 ` john at quivinco dot com
2010-08-06 20:49 ` john at quivinco dot com
2010-08-17 11:58 ` john at quivinco dot com

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).