https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114765

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Alexander Monakov from comment #5)
> Can libgomp defer changing affinity of the initial thread to the launch of
> the first parallel region (i.e. change it only at thread pool
> initialization, together with new threads)?

The creation of a parallel region is very performance sensitive area, so
slowing it down is undesirable.  But more importantly, if the initial thread
switches binding only at that point, it will mean memory allocated by the
initial thread might no longer be close to that thread.

Reply via email to