-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMT] ROOT::GetThreadPoolSize does not reflect tbb::global_control settings #6363
Comments
Maybe we could check root/core/imt/src/RTaskArena.cxx Lines 69 to 81 in 178dd7f
|
Makes sense, can do. I would expect tbb::task_arena::max_concurrency() to check that |
uhm on the other hand |
warn when the number of threads set by the user is limited at runtime by tbb::global_control. Fix for github issue root-project#6363: root-project#6363
warn when the number of threads set by the user is limited at runtime by tbb::global_control. Fix for github issue root-project#6363: root-project#6363
warn when the number of threads set by the user is limited at runtime by tbb::global_control. Fix for github issue root-project#6363: root-project#6363
Solved in #6814 |
warn when the number of threads set by the user is limited at runtime by tbb::global_control. Fix for github issue root-project#6363: root-project#6363
warn when the number of threads set by the user is limited at runtime by tbb::global_control. Fix for github issue root-project#6363: root-project#6363
warn when the number of threads set by the user is limited at runtime by tbb::global_control. Fix for github issue root-project#6363: root-project#6363
Describe the bug
Calling
tbb::global_control c(tbb::global_control::max_allowed_parallelism, 3);
followed byROOT::GetThreadPoolSize()
orTThreadExecutor::GetPoolSize()
results in the incorrect number of threads reported (hardware concurrency rather than what was set viatbb::global_control
.Expected behavior
ROOT::GetThreadPoolSize
should report the real TBB thread pool size or the real number of threads that ROOT will use.To Reproduce
This code prints 8 two times on my 8-core workstation, but CPU usage is actually 300%, i.e. TBB's thread pool has size 3 but we ROOT reports 8.
The text was updated successfully, but these errors were encountered: