This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Mixing Eigen parallelization with OpenMP

Tags: None
(comma "," separated)
matriza
Registered Member
Posts
17
Karma
0
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.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
Yes the best is to disable Eigen's multi-threading before entering your parallel code, and re-enable it right after.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]