Skip to content

Use ThreadPool::NumThreads over hardware_concurrency - #323

Closed
jdumas wants to merge 1 commit into
mkazhdan:masterfrom
jdumas:jdumas/concurrency
Closed

jdumas wants to merge 1 commit into
mkazhdan:masterfrom
jdumas:jdumas/concurrency

Conversation

@jdumas

@jdumas jdumas commented Oct 25, 2025

Copy link
Copy Markdown

When replacing ThreadPool::NumThreads() to use tbb::this_task_arena::max_concurrency(), the value can end up being different from std::thread::hardware_concurrency(). On AMD EPYC 9454P I ended up with values of 48 for the STL concurrency and 96 for the TBB max concurrency.

@jdumas

jdumas commented Nov 12, 2025

Copy link
Copy Markdown
Author

Fixed by cd6dc7d

@jdumas jdumas closed this Nov 12, 2025
@jdumas
jdumas deleted the jdumas/concurrency branch April 2, 2026 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant