This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Thread pool libgomp (openmp)
- From: Charles Cardoso <charlesoc94 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 16 May 2018 15:33:04 -0300
- Subject: Thread pool libgomp (openmp)
When changing the number of threads dynamically in OpenMP, I've seen that
if the next region has fewer threads than the previous, the exceed is left
to die. So, in the future, if another region needs more threads is
necessary calling pthread_create() again. Why doesn't libgomp maintains the
exceed threads in the pool to reuse case necessary?