https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80822
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jun 22 11:11:43 2017 New Revision: 249508 URL: https://gcc.gnu.org/viewcvs?rev=249508&root=gcc&view=rev Log: Backported from mainline 2017-05-30 Jakub Jelinek <ja...@redhat.com> PR libgomp/80822 * config/linux/affinity.c (gomp_affinity_init_level_1): New function. (gomp_affinity_init_level): Use it. Always analyze the core and thread sibling lists, depending on level just pick up what CPUs to put together into a place vs. whether add multiple ordered places. Modified: branches/gcc-6-branch/libgomp/ChangeLog branches/gcc-6-branch/libgomp/config/linux/affinity.c