public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "vincenzo.innocente at cern dot ch" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/58642] gomp regression: not "honoring" anymore task set and numactl
Date: Tue, 08 Oct 2013 06:40:00 -0000	[thread overview]
Message-ID: <bug-58642-4-31lbUOkapj@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-58642-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #28 from vincenzo Innocente <vincenzo.innocente at cern dot ch> ---
updated to the new revision
gcc version 4.9.0 20131007 (experimental) [gomp-4_0-branch revision 203250]
(GCC) 

[innocent@olsnba04 parallel]$ setenv OMP_PROC_BIND 'spread,master,close';
setenv OMP_PLACES '{0}:8'
[innocent@olsnba04 parallel]$ printenv | grep OMP
OMP_PROC_BIND=spread,master,close
OMP_PLACES={0}:8
[innocent@olsnba04 parallel]$ strace ./affinity-1.exe | & grep affin
execve("./affinity-1.exe", ["./affinity-1.exe"], [/* 61 vars */]) = 0
sched_getaffinity(109733, 8, 0x1dc8010) = -1 EINVAL (Invalid argument)
sched_getaffinity(109733, 128,  { ffffffff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0 }) = 128
sched_getaffinity(109733, 128,  { ffffffff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0 }) = 128
sched_setaffinity(109733, 8,  { 1 })    = 0
sched_getaffinity(109733, 8, 0x7fff71425940) = -1 EINVAL (Invalid argument)
sched_setaffinity(109734, 8,  { 4 })    = 0
sched_setaffinity(109735, 8,  { 10 })   = 0
sched_setaffinity(109736, 8,  { 40 })   = 0
sched_getaffinity(109733, 8, 0x7fff714258c0) = -1 EINVAL (Invalid argument)
sched_setaffinity(109755, 8,  { 80 })   = 0
sched_getaffinity(109733, 8, 0x7fff714258b0) = -1 EINVAL (Invalid argument)
sched_setaffinity(109770, 8,  { 1 })    = 0
sched_setaffinity(109771, 8,  { 1 })    = 0
sched_getaffinity(109733, 8, 0x7fff714258c0) = -1 EINVAL (Invalid argument)
sched_setaffinity(109794, 8,  { 2 })    = 0
sched_setaffinity(109795, 8,  { 4 })    = 0
sched_setaffinity(109796, 8,  { 8 })    = 0
sched_setaffinity(109797, 8,  { 10 })   = 0
sched_getaffinity(109733, 8, 0x7fff714258b0) = -1 EINVAL (Invalid argument)

[innocent@olsnba04 parallel]$ ./affinity-1.exe
OMP_PROC_BIND='spread,master,close' OMP_PLACES='{0}:8'
Initial thread
#1 thread 0
#1 thread 2
#1 thread 1
#1 thread 3
#1,#1 thread 3,0
#1,#1 thread 3,2
#1,#1 thread 3,1
#1,#2 thread 3,3
#1,#2 thread 3,0
#1,#2 thread 3,2
#1,#2 thread 3,4
#1,#2 thread 3,1
#1,#2,#1 thread 3,3,0
#1,#2,#1 thread 3,3,4
#1,#2,#1 thread 3,3,3
#1,#2,#1 thread 3,3,2
#1,#2,#1 thread 3,3,1
#1,#3 thread 3,0
#1,#3 thread 3,3
#1,#3 thread 3,2
#1,#3 thread 3,1
#1,#4 thread 3,5
#1,#4 thread 3,0
#1,#4 thread 3,4
#1,#4 thread 3,2
#1,#4 thread 3,3
#1,#4 thread 3,1
#2 thread 0
#2 thread 3
#2 thread 1
#2 thread 2
#2 thread 4
#2,#1 thread 3,0
#2,#1 thread 3,2
#2,#1 thread 3,1
#2,#2 thread 3,0
#2,#2 thread 3,4
#2,#2 thread 3,3
#2,#2 thread 3,2
#2,#2 thread 3,1
#2,#3 thread 3,0
#2,#3 thread 3,3
#2,#3 thread 3,2
#2,#3 thread 3,1
#2,#4 thread 3,0
#2,#4 thread 3,5
#2,#4 thread 3,4
#2,#4 thread 3,3
#2,#4 thread 3,2
#2,#4 thread 3,1
#3 thread 0
#3 thread 2
#3 thread 1
#3,#1 thread 2,0
#3,#1 thread 2,3
#3,#1 thread 2,2
#3,#1 thread 2,1
#3,#2 thread 2,2
#3,#2 thread 2,1
#3,#2 thread 2,0
#3,#2 thread 2,3
#3,#2,#1 thread 2,0,0
#3,#2,#1 thread 2,0,4
#3,#2,#1 thread 2,0,2
#3,#2,#1 thread 2,0,3
#3,#2,#1 thread 2,0,1
#3,#2,#2 thread 2,3,0
#3,#2,#2 thread 2,3,2
#3,#2,#2 thread 2,3,3
#3,#2,#2 thread 2,3,4
#3,#2,#2 thread 2,3,1
#3,#3 thread 2,0
#3,#3 thread 2,3
#3,#3 thread 2,2
#3,#3 thread 2,1
#3,#4 thread 2,5
#3,#4 thread 2,1
#3,#4 thread 2,0
#3,#4 thread 2,2
#3,#4 thread 2,3
#3,#4 thread 2,4
#4 thread 1
#4 thread 2
#4 thread 3
#4 thread 4
#4 thread 0
#4,#1 thread 2,0
#4,#1 thread 2,3
#4,#1 thread 2,2
#4,#1 thread 2,1
#4,#2 thread 2,1
#4,#2 thread 2,3
#4,#2 thread 2,2
#4,#2 thread 2,0
#4,#2,#1 thread 2,0,0
#4,#2,#1 thread 2,0,4
#4,#2,#1 thread 2,0,1
#4,#2,#1 thread 2,0,2
#4,#2,#1 thread 2,0,3
#4,#2,#2 thread 2,2,0
#4,#2,#2 thread 2,2,3
#4,#2,#2 thread 2,2,2
#4,#2,#2 thread 2,2,4
#4,#2,#2 thread 2,2,1
#4,#2,#3 thread 2,3,3
#4,#2,#3 thread 2,3,0
#4,#2,#3 thread 2,3,4
#4,#2,#3 thread 2,3,1
#4,#2,#3 thread 2,3,2
#4,#3 thread 2,0
#4,#3 thread 2,3
#4,#3 thread 2,2
#4,#3 thread 2,1
#4,#4 thread 2,2
#4,#4 thread 2,5
#4,#4 thread 2,4
#4,#4 thread 2,0
#4,#4 thread 2,1
#4,#4 thread 2,3

[innocent@olsnba04 parallel]$ setenv OMP_PROC_BIND 'spread,master,close';
setenv OMP_PLACES '{7,6}:2:-3'
[innocent@olsnba04 parallel]$ printenv | grep OMP
OMP_PROC_BIND=spread,master,close
OMP_PLACES={7,6}:2:-3
strace ./affinity-1.exe |& grep affin
execve("./affinity-1.exe", ["./affinity-1.exe"], [/* 61 vars */]) = 0
sched_getaffinity(109640, 8, 0x24e9010) = -1 EINVAL (Invalid argument)
sched_getaffinity(109640, 128,  { ffffffff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0 }) = 128
sched_getaffinity(109640, 128,  { ffffffff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0 }) = 128
sched_setaffinity(109640, 8,  { c0 })   = 0
sched_getaffinity(109640, 8, 0x7fffaeaeda40) = -1 EINVAL (Invalid argument)
sched_setaffinity(109641, 8,  { c0 })   = 0
sched_setaffinity(109642, 8,  { 18 })   = 0
sched_setaffinity(109643, 8,  { 18 })   = 0
sched_getaffinity(109640, 8, 0x7fffaeaed9c0) = -1 EINVAL (Invalid argument)
sched_setaffinity(109662, 8,  { c0 })   = 0
sched_getaffinity(109640, 8, 0x7fffaeaed9b0) = -1 EINVAL (Invalid argument)
sched_getaffinity(109640, 8, 0x7fffaeaed9c0) = -1 EINVAL (Invalid argument)
sched_setaffinity(109699, 8,  { 18 })   = 0
sched_setaffinity(109700, 8,  { 18 })   = 0
sched_getaffinity(109640, 8, 0x7fffaeaed9b0) = -1 EINVAL (Invalid argument)

[innocent@olsnba04 parallel]$ ./affinity-1.exe
OMP_PROC_BIND='spread,master,close' OMP_PLACES='{7,6}:2:-3'
Initial thread
#1 thread 0
#1 thread 3
#1 thread 1
#1 thread 2
#1,#1 thread 3,1
#1,#1 thread 3,2
#1,#1 thread 3,0
#1,#2 thread 3,2
#1,#2 thread 3,3
#1,#2 thread 3,0
#1,#2 thread 3,1
#1,#2 thread 3,4
#1,#2,#1 thread 3,3,3
#1,#2,#1 thread 3,3,0
#1,#2,#1 thread 3,3,2
#1,#2,#1 thread 3,3,4
#1,#2,#1 thread 3,3,1
#1,#3 thread 3,1
#1,#3 thread 3,0
#1,#3 thread 3,3
#1,#3 thread 3,2
#1,#4 thread 3,1
#1,#4 thread 3,0
#1,#4 thread 3,5
#1,#4 thread 3,4
#1,#4 thread 3,3
#1,#4 thread 3,2
#2 thread 2
#2 thread 0
#2 thread 3
#2 thread 1
#2 thread 4
#2,#1 thread 3,1
#2,#1 thread 3,0
#2,#1 thread 3,2
#2,#2 thread 3,0
#2,#2 thread 3,2
#2,#2 thread 3,3
#2,#2 thread 3,1
#2,#2 thread 3,4
#2,#3 thread 3,1
#2,#3 thread 3,2
#2,#3 thread 3,0
#2,#3 thread 3,3
#2,#4 thread 3,0
#2,#4 thread 3,3
#2,#4 thread 3,4
#2,#4 thread 3,1
#2,#4 thread 3,5
#2,#4 thread 3,2
#3 thread 0
#3 thread 2
#3 thread 1
#3,#1 thread 2,2
#3,#1 thread 2,0
#3,#1 thread 2,1
#3,#1 thread 2,3
#3,#2 thread 2,0
#3,#2 thread 2,1
#3,#2 thread 2,3
#3,#2 thread 2,2
#3,#2,#1 thread 2,0,3
#3,#2,#1 thread 2,0,0
#3,#2,#1 thread 2,0,2
#3,#2,#1 thread 2,0,4
#3,#2,#1 thread 2,0,1
#3,#2,#2 thread 2,3,4
#3,#2,#2 thread 2,3,0
#3,#2,#2 thread 2,3,2
#3,#2,#2 thread 2,3,3
#3,#2,#2 thread 2,3,1
#3,#3 thread 2,0
#3,#3 thread 2,1
#3,#3 thread 2,3
#3,#3 thread 2,2
#3,#4 thread 2,3
#3,#4 thread 2,0
#3,#4 thread 2,1
#3,#4 thread 2,4
#3,#4 thread 2,5
#3,#4 thread 2,2
#4 thread 1
#4 thread 3
#4 thread 4
#4 thread 2
#4 thread 0
#4,#1 thread 2,1
#4,#1 thread 2,0
#4,#1 thread 2,2
#4,#1 thread 2,3
#4,#2 thread 2,2
#4,#2 thread 2,1
#4,#2 thread 2,3
#4,#2 thread 2,0
#4,#2,#1 thread 2,0,3
#4,#2,#1 thread 2,0,0
#4,#2,#1 thread 2,0,2
#4,#2,#1 thread 2,0,1
#4,#2,#1 thread 2,0,4
#4,#2,#2 thread 2,2,1
#4,#2,#2 thread 2,2,0
#4,#2,#2 thread 2,2,3
#4,#2,#2 thread 2,2,4
#4,#2,#2 thread 2,2,2
#4,#2,#3 thread 2,3,4
#4,#2,#3 thread 2,3,0
#4,#2,#3 thread 2,3,3
#4,#2,#3 thread 2,3,1
#4,#2,#3 thread 2,3,2
#4,#3 thread 2,1
#4,#3 thread 2,0
#4,#3 thread 2,2
#4,#3 thread 2,3
#4,#4 thread 2,2
#4,#4 thread 2,3
#4,#4 thread 2,0
#4,#4 thread 2,5
#4,#4 thread 2,1
#4,#4 thread 2,4
[innocent@olsnba04 parallel]$ 


>>


  parent reply	other threads:[~2013-10-08  6:40 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-06 13:42 [Bug libgomp/58642] New: " vincenzo.innocente at cern dot ch
2013-10-06 13:56 ` [Bug libgomp/58642] " jakub at gcc dot gnu.org
2013-10-06 14:05 ` jakub at gcc dot gnu.org
2013-10-06 14:38 ` vincenzo.innocente at cern dot ch
2013-10-06 15:15 ` vincenzo.innocente at cern dot ch
2013-10-06 18:02 ` jakub at gcc dot gnu.org
2013-10-06 19:31 ` jakub at gcc dot gnu.org
2013-10-07  6:49 ` vincenzo.innocente at cern dot ch
2013-10-07  6:53 ` vincenzo.innocente at cern dot ch
2013-10-07  7:47 ` jakub at gcc dot gnu.org
2013-10-07  7:58 ` vincenzo.innocente at cern dot ch
2013-10-07  8:04 ` jakub at gcc dot gnu.org
2013-10-07  8:06 ` jakub at gcc dot gnu.org
2013-10-07  8:08 ` vincenzo.innocente at cern dot ch
2013-10-07  8:12 ` vincenzo.innocente at cern dot ch
2013-10-07 10:14 ` vincenzo.innocente at cern dot ch
2013-10-07 10:28 ` jakub at gcc dot gnu.org
2013-10-07 11:03 ` vincenzo.innocente at cern dot ch
2013-10-07 11:06 ` vincenzo.innocente at cern dot ch
2013-10-07 11:32 ` jakub at gcc dot gnu.org
2013-10-07 11:39 ` jakub at gcc dot gnu.org
2013-10-07 12:07 ` vincenzo.innocente at cern dot ch
2013-10-07 12:43 ` vincenzo.innocente at cern dot ch
2013-10-07 13:22 ` vincenzo.innocente at cern dot ch
2013-10-07 17:04 ` jakub at gcc dot gnu.org
2013-10-08  6:40 ` vincenzo.innocente at cern dot ch [this message]
2013-10-08  7:22 ` vincenzo.innocente at cern dot ch
2013-10-11 10:40 ` jakub at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-58642-4-31lbUOkapj@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).