[Omp] [OMP] Can I mix OMP with pthread in a code?
Meadows, Lawrence F
lawrence.f.meadows at intel.com
Wed Sep 12 09:22:08 PDT 2007
Mixing OpenMP and pthreads depends on your vendor. The Intel compiler
supports it.
The performance problem is probably not related to mixing pthreads and
OpenMP, it sounds like -mp may be disabling some optimizations; but
you'd have to check with your compiler vendor.
________________________________
From: omp-bounces at openmp.org [mailto:omp-bounces at openmp.org] On Behalf
Of Terrence.LIAO at total.com
Sent: Wednesday, September 12, 2007 5:08 AM
To: omp at openmp.org
Subject: [Omp] [OMP] Can I mix OMP with pthread in a code?
Dear All,
Can I mix OMP with pthread in a code?
Well the answer might be yes, but with PathScale EKOpath V.2.5, I see
the performance on my pthread code drop to near serial when OMP flag
(-mp) is on, but the OMP code still run fine. Any recommendation on
OMP/pthread mixing, or should I stay with pure OMP or pure thread.
Thank you very much.
-- Terrence
<mailto:Terrence.Liao at TOTAL.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openmp.org/pipermail/omp/attachments/20070912/237e7c3a/attachment.html
More information about the Omp
mailing list