Anders Wallin wrote:
Hello group,
I have C++ code which uses OpenMP to parallellize some algorithms.
When wrapped with boost-python only one thread seems to run at a time,
and there is no speedup (as seen with pure C++) when using multiple
core machines.

The FAQ says this is pretty much expected, but hints at a possible patch:
http://www.boost.org/doc/libs/1_41_0/libs/python/doc/v2/faq.html#threadsupport

How difficult is it to make boost-python play nice with OpenMP? Anyone
done it? Is this ever going to be a feature of boost-python, or always
going to require special patching and hacking?


Boost.MPI has python bindings, you could look at those for ideas.

-t


_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to