------- Comment #3 from jakub at gcc dot gnu dot org 2010-07-06 08:21 ------- That's how GOMP_CPU_AFFINITY works - it is a round-robin assignment of CPUs upon thread creation, and the first two threads are never recreated in this case. Currently there is no tracking on how many threads bind to which CPU etc. We'd need to track that in some data structure and choose CPU with lowest number of assigned threads or something.
-- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |openmp http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44833