[Numpy-discussion] OT: performance in C extension; OpenMP, or SSE ?
Matthieu Brucher
matthieu.brucher at gmail.com
Thu Feb 17 04:57:51 EST 2011
> Then, where does the overhead come from ? --
> The call to omp_set_dynamic(dynamic);
> Or the
> #pragma omp parallel for private(j, i,ax,ay, dif_x, dif_y)
>
It may be this. You initialize a thread pool, even if it has only one
thread, and there is the dynamic part, so OpenMP may create several chunks
instead of one big chunk.
Matthieu
--
Information System Engineer, Ph.D.
Blog: http://matt.eifelle.com
LinkedIn: http://www.linkedin.com/in/matthieubrucher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110217/d46e3ded/attachment.html>
More information about the NumPy-Discussion
mailing list