[C++-sig] OpenMP and boost-python?
Anders Wallin
anders.e.e.wallin at gmail.com
Mon Feb 1 19:26:51 CET 2010
> I'm not convinced of this. It is true that there may only ever be one thread
> accessing the Python runtime (thus the GIL to enforce it). But you may
> certainly have as many threads doing other work as you want. And if your
> OpenMP-enabled code is pure C++, with no hooks into the Python runtime, then
> I don't see why that may not work.
> Again: If your OpenMP-using code and the Python-exposed API are well
> isolated, I don't think either needs to know about the other.
Thanks, in fact I now got my trivial example working with a good
speedup! For the real code I need to look at isolating C++/Python.
AW
More information about the Cplusplus-sig
mailing list