Registered Member
|
Hi,
I've read http://eigen.tuxfamily.org/dox-devel/To ... ading.html, but it's still not clear to whether the two can be mixed somehow. I have some trivially parallelizable loop over a matrix (computing an RBF kernel) which I'd like to parallelize using OpenMP, but also keep the Eigen parallelization for other matrix products in the program. Is there a clash between the two goals? If there is a clash, can I disable Eigen parallelization just before the OpenMP pragma, run the OpenMP loop, then enable Eigen parallelization again? Thanks. |
Moderator
|
Yes the best is to disable Eigen's multi-threading before entering your parallel code, and re-enable it right after.
|
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]