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

--- Comment #30 from vincenzo Innocente <vincenzo.innocente at cern dot ch> ---
better: as usual nastier bugs are in the tests!
[innocent@olsnba04 parallel]$ strace ./affinity-1.exe | & grep affin
execve("./affinity-1.exe", ["./affinity-1.exe"], [/* 61 vars */]) = 0
sched_getaffinity(110481, 8, 0x7b8010)  = -1 EINVAL (Invalid argument)
sched_getaffinity(110481, 128,  { ffffffff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0 }) = 128
sched_getaffinity(110481, 128,  { ffffffff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0 }) = 128
sched_setaffinity(110481, 8,  { 1 })    = 0
sched_getaffinity(110481, 128,  { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0 }) = 128
sched_setaffinity(110482, 8,  { 4 })    = 0
sched_setaffinity(110483, 8,  { 10 })   = 0
sched_setaffinity(110484, 8,  { 40 })   = 0
sched_getaffinity(110481, 128,  { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0 }) = 128
sched_setaffinity(110503, 8,  { 80 })   = 0
sched_getaffinity(110481, 128,  { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0 }) = 128
sched_setaffinity(110518, 8,  { 1 })    = 0
sched_setaffinity(110519, 8,  { 1 })    = 0
sched_getaffinity(110481, 128,  { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0 }) = 128
sched_setaffinity(110542, 8,  { 2 })    = 0
sched_setaffinity(110543, 8,  { 4 })    = 0
sched_setaffinity(110544, 8,  { 8 })    = 0
sched_setaffinity(110545, 8,  { 10 })   = 0
sched_getaffinity(110481, 128,  { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0 }) = 128
[innocent@olsnba04 parallel]$ ./affinity-1.exe 
OMP_PROC_BIND='spread,master,close' OMP_PLACES='{0}:8'
Initial thread bound to {0}, verified
#1 thread 0 bound to {0}, verified
#1 thread 1 bound to {2}, verified
#1 thread 2 bound to {4}, verified
#1 thread 3 bound to {6}, verified
#1,#1 thread 3,0 bound to {6}, verified
#1,#1 thread 3,2 bound to {6}, verified
#1,#1 thread 3,1 bound to {6}, verified
#1,#2 thread 3,0 bound to {6}, verified
#1,#2 thread 3,3 bound to {7}, verified
#1,#2 thread 3,4 bound to {6}, verified
#1,#2 thread 3,2 bound to {7}, verified
#1,#2 thread 3,1 bound to {6}, verified
#1,#2,#1 thread 3,3,0 bound to {7}, verified
#1,#2,#1 thread 3,3,4 bound to {7}, verified
#1,#2,#1 thread 3,3,3 bound to {7}, verified
#1,#2,#1 thread 3,3,2 bound to {7}, verified
#1,#2,#1 thread 3,3,1 bound to {7}, verified
#1,#3 thread 3,0 bound to {6}, verified
#1,#3 thread 3,3 bound to {6}, verified
#1,#3 thread 3,2 bound to {6}, verified
#1,#3 thread 3,1 bound to {6}, verified
#1,#4 thread 3,4 bound to {7}, verified
#1,#4 thread 3,0 bound to {6}, verified
#1,#4 thread 3,3 bound to {7}, verified
#1,#4 thread 3,2 bound to {6}, verified
#1,#4 thread 3,5 bound to {7}, verified
#1,#4 thread 3,1 bound to {6}, verified
#2 thread 0 bound to {0}, verified
#2 thread 1 bound to {2}, verified
#2 thread 3 bound to {6}, verified
#2 thread 4 bound to {7}, verified
#2 thread 2 bound to {4}, verified
#2,#1 thread 3,0 bound to {6}, verified
#2,#1 thread 3,2 bound to {6}, verified
#2,#1 thread 3,1 bound to {6}, verified
#2,#2 thread 3,0 bound to {6}, verified
#2,#2 thread 3,4 bound to {6}, verified
#2,#2 thread 3,3 bound to {6}, verified
#2,#2 thread 3,2 bound to {6}, verified
#2,#2 thread 3,1 bound to {6}, verified
#2,#3 thread 3,0 bound to {6}, verified
#2,#3 thread 3,3 bound to {6}, verified
#2,#3 thread 3,2 bound to {6}, verified
#2,#3 thread 3,1 bound to {6}, verified
#2,#4 thread 3,0 bound to {6}, verified
#2,#4 thread 3,5 bound to {6}, verified
#2,#4 thread 3,4 bound to {6}, verified
#2,#4 thread 3,3 bound to {6}, verified
#2,#4 thread 3,2 bound to {6}, verified
#2,#4 thread 3,1 bound to {6}, verified
#3 thread 0 bound to {0}, verified
#3 thread 2 bound to {0}, verified
#3 thread 1 bound to {0}, verified
#3,#1 thread 2,0 bound to {0}, verified
#3,#1 thread 2,3 bound to {0}, verified
#3,#1 thread 2,2 bound to {0}, verified
#3,#1 thread 2,1 bound to {0}, verified
#3,#2 thread 2,2 bound to {4}, verified
#3,#2 thread 2,1 bound to {2}, verified
#3,#2 thread 2,0 bound to {0}, verified
#3,#2 thread 2,3 bound to {6}, verified
#3,#2,#1 thread 2,0,1 bound to {0}, verified
#3,#2,#1 thread 2,0,0 bound to {0}, verified
#3,#2,#1 thread 2,0,3 bound to {1}, verified
#3,#2,#1 thread 2,0,4 bound to {0}, verified
#3,#2,#1 thread 2,0,2 bound to {1}, verified
#3,#2,#2 thread 2,3,0 bound to {6}, verified
#3,#2,#2 thread 2,3,3 bound to {7}, verified
#3,#2,#2 thread 2,3,2 bound to {7}, verified
#3,#2,#2 thread 2,3,4 bound to {6}, verified
#3,#2,#2 thread 2,3,1 bound to {6}, verified
#3,#3 thread 2,0 bound to {0}, verified
#3,#3 thread 2,3 bound to {0}, verified
#3,#3 thread 2,2 bound to {0}, verified
#3,#3 thread 2,1 bound to {0}, verified
#3,#4 thread 2,1 bound to {1}, verified
#3,#4 thread 2,5 bound to {5}, verified
#3,#4 thread 2,3 bound to {3}, verified
#3,#4 thread 2,0 bound to {0}, verified
#3,#4 thread 2,2 bound to {2}, verified
#3,#4 thread 2,4 bound to {4}, verified
#4 thread 1 bound to {1}, verified
#4 thread 2 bound to {2}, verified
#4 thread 3 bound to {3}, verified
#4 thread 4 bound to {4}, verified
#4 thread 0 bound to {0}, verified
#4,#1 thread 2,0 bound to {2}, verified
#4,#1 thread 2,3 bound to {2}, verified
#4,#1 thread 2,2 bound to {2}, verified
#4,#1 thread 2,1 bound to {2}, verified
#4,#2 thread 2,1 bound to {4}, verified
#4,#2 thread 2,3 bound to {0}, verified
#4,#2 thread 2,2 bound to {6}, verified
#4,#2 thread 2,0 bound to {2}, verified
#4,#2,#1 thread 2,0,0 bound to {2}, verified
#4,#2,#1 thread 2,0,3 bound to {3}, verified
#4,#2,#1 thread 2,0,2 bound to {3}, verified
#4,#2,#1 thread 2,0,4 bound to {2}, verified
#4,#2,#1 thread 2,0,1 bound to {2}, verified
#4,#2,#2 thread 2,2,3 bound to {7}, verified
#4,#2,#2 thread 2,2,2 bound to {7}, verified
#4,#2,#2 thread 2,2,4 bound to {6}, verified
#4,#2,#2 thread 2,2,1 bound to {6}, verified
#4,#2,#2 thread 2,2,0 bound to {6}, verified
#4,#2,#3 thread 2,3,2 bound to {1}, verified
#4,#2,#3 thread 2,3,0 bound to {0}, verified
#4,#2,#3 thread 2,3,4 bound to {0}, verified
#4,#2,#3 thread 2,3,1 bound to {0}, verified
#4,#2,#3 thread 2,3,3 bound to {1}, verified
#4,#3 thread 2,0 bound to {2}, verified
#4,#3 thread 2,3 bound to {2}, verified
#4,#3 thread 2,2 bound to {2}, verified
#4,#3 thread 2,1 bound to {2}, verified
#4,#4 thread 2,1 bound to {3}, verified
#4,#4 thread 2,2 bound to {4}, verified
#4,#4 thread 2,5 bound to {7}, verified
#4,#4 thread 2,4 bound to {6}, verified
#4,#4 thread 2,0 bound to {2}, verified
#4,#4 thread 2,3 bound to {5}, verified

./affinity-1.exe | grep verified | wc
   1065    7445   44193

taskset -c 0-15 ./affinity-1.exe | grep gomp | wc
      0       0       0
[innocent@olsnba04 parallel]$ 


> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58642
> 
> --- Comment #29 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> Created attachment 30967
>  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30967&action=edit
> Y
> 
> Ah, thanks, I can see where the failing sched_getaffinity calls are coming
> from, hopefully this patch should fix that.
> 
> That doesn't explain the libgomp errors you were getting though (if you can
> still reproduce them).
> To track that perhaps we could instrument libgomp to tell us more details.
> 
> -- 
> You are receiving this mail because:
> You reported the bug.

--
Il est bon de suivre sa pente, pourvu que ce soit en montant. 
A.G.
http://www.flickr.com/photos/vin60/1320965757/

Reply via email to