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

Disable OpenMP?

Tags: None
(comma "," separated)
dubmarauder
Registered Member
Posts
14
Karma
0
OS

Disable OpenMP?

Tue Jan 04, 2011 3:04 am
I am writing an application that makes heavy use of both OpenMP and Eigen, but I want to turn off Eigen's use of OpenMP. Is there a flag that I can use when building my application to do this?

Thanks for the input!
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Disable OpenMP?

Tue Jan 04, 2011 7:15 am
you can define EIGEN_DONT_PARALLELIZE

You can also control Eigen at runtime using:

Eigen::setNbThreads(n)
dubmarauder
Registered Member
Posts
14
Karma
0
OS

Re: Disable OpenMP?

Tue Jan 04, 2011 8:20 pm
Perfect, exactly what I was looking for. Thank you!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft