http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58642

--- Comment #10 from vincenzo Innocente <vincenzo.innocente at cern dot ch> ---
seems working

[innocent@olsnba04 parallel]$ c++ -std=c++11 -Ofast -fopenmp simpleOMP.cpp 
[innocent@olsnba04 parallel]$ ./a.out 
max thread 32
[innocent@olsnba04 parallel]$ taskset -c 0-3 ./a.out
max thread 4
[innocent@olsnba04 parallel]$ taskset -c 0-3 strace ./a.out |& grep aff
sched_getaffinity(72698, 8, 0x855010)   = -1 EINVAL (Invalid argument)
sched_getaffinity(72698, 128,  { f, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}) = 128
[innocent@olsnba04 parallel]$ taskset -c 0-15 strace ./a.out | & grep aff
sched_getaffinity(72702, 8, 0x1b2e010)  = -1 EINVAL (Invalid argument)
sched_getaffinity(72702, 128,  { ffff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0 }) = 128
[innocent@olsnba04 parallel]$ strace ./a.out | & grep aff
sched_getaffinity(72705, 8, 0x25ff010)  = -1 EINVAL (Invalid argument)
sched_getaffinity(72705, 128,  { ffffffff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0 }) = 128

Reply via email to