Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USE flag threads... pthreads, openmp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
neyuru
Apprentice
Apprentice


Joined: 21 Mar 2020
Posts: 191

PostPosted: Thu Dec 03, 2020 5:28 pm    Post subject: USE flag threads... pthreads, openmp Reply with quote

In my system, several packages have the option to select the threads USE flag:

"Add threads support for various packages. Usually pthreads"

But I also use linear algebra libraries (e.g. OpenBLAS) through the eselect-ldso USE flag. In Gentoo's wiki page it is warned:

"Don’t use pthread and openmp at the same time since it will incur significant performance drop due to excessive thread creation.
This can happen when some libraries linked against an application use OpenMP threading, while some others use pthread."


I don't seem to find a way to control what threading paradigm the programs use (when the threads USE flag is ON) so it is a possibility that they are defaulted to pthreads. On the other side, OpenBLAS might be using openmp, clearly violating the warning in the wiki page. If I'm not mistaken, threads will enable multithreaded support on packages that have the option of doing so through USE flag threads. If so, I wouldn't want to miss that feature by forcefully disabling the threads USE flag so that OpenBLAS lives happily in my system (I do prioritize this math library over anything else)

Any thoughts????
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum