How to deal with OpenMP thread pool contention
Posted
by dpe82
on Stack Overflow
See other posts from Stack Overflow
or by dpe82
Published on 2010-04-21T21:27:07Z
Indexed on
2010/04/21
22:13 UTC
Read the original article
Hit count: 451
openmp
|multithreading
I'm working on an application that uses both coarse and fine grained multi-threading. That is, we manage scheduling of large work units on a pool of threads manually, and then within those work units certain functions utilize OpenMP for finer grain multithreading.
We have realized gains by selectively using OpenMP in our costliest loops, but are concerned about creating contention for the OpenMP worker pool as we add OpenMP blocks to cheaper loops. Is there a way to signal to OpenMP that a block of code should use the pool if it is available, and if not it should process the loop serially?
© Stack Overflow or respective owner