[Numpy-discussion] OT: performance in C extension; OpenMP, or SSE ?

Matthieu Brucher matthieu.brucher@gmail....
Thu Feb 17 03:57:51 CST 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.

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.scipy.org/pipermail/numpy-discussion/attachments/20110217/d46e3ded/attachment.html 

More information about the NumPy-Discussion mailing list