[Omp] [OMP] Can I mix OMP with pthread in a code?
Tim Prince
tprince at computer.org
Wed Sep 12 11:11:25 PDT 2007
Terrence.LIAO at total.com wrote:
> 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.
>
As several implementations of OpenMP for certain operating systems are
based on pthreads, it is likely to work. However, neither the OpenMP
nor the separately created pthreads will be aware of the resources the
other is using. This is likely to result in some CPUs being
over-subscribed with more threads than others.
More information about the Omp
mailing list