[Users] OpenMP is making it slower?

Erik Schnetter schnetter at cct.lsu.edu
Thu May 19 13:31:02 CDT 2011


On Wed, May 18, 2011 at 6:33 PM, Scott Hawley <scott.hawley at belmont.edu> wrote:
> Ok. Still having problems.
> I defaulted everything to private and explicitly declared my shared's.  Now
> what happens is that the outer "k" loop never gets incremented.
> Even if I run with only one thread, "k" always equals 1.

I believe that the I/O statements (the write statement) cannot be
called from a parallel region. You need to enclose it in a critical
statement or similar if you want to keep it. I would suggest instead
to comment it out.

-erik

-- 
Erik Schnetter <schnetter at cct.lsu.edu>   http://www.cct.lsu.edu/~eschnett/


More information about the Users mailing list