------- Comment #3 from baeuml at kit dot edu 2010-04-09 20:55 ------- > Have you done a profile (using oprofile) to see why this happens.
I've oprofile'd the original program from which this is a stripped down minimal example. I did not see anything unusual, but I'm certainly no expert with oprofile. Gdb however shows that all 4 threads are waiting in do_wait() (config/linux/wait.h) > Really I think GOMP_CPU_AFFINITY should not be used that much as it will cause > starvation no matter what. As I said, this happens also without GOMP_CPU_AFFINITY when there is enough load on the cores. By using GOMP_CPU_AFFINITY I'm just able to reproduce the issue reliably with the given minimal example without needing to put load on the cores. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43706