http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58642
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to vincenzo Innocente from comment #10) > seems working Thanks. Can you please also try some simple (with -fopenmp): int main (void) { #pragma omp parallel num_threads (32) asm volatile ("" : : : "memory"); return 0; } with OMP_PROC_BIND=true and OMP_PLACES='threads' (resp. cores resp. sockets resp. say {0:4}:4:8) and post the strace -f sched_[sg]etaffinity syscalls from that? I'd like to see whether it managed to properly use just size 8 for the setaffinity syscalls, while 128 for getaffinity.