From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1555 invoked by alias); 8 Oct 2013 07:22:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 1521 invoked by uid 55); 8 Oct 2013 07:22:25 -0000 From: "vincenzo.innocente at cern dot ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/58642] gomp regression: not "honoring" anymore task set and numactl Date: Tue, 08 Oct 2013 07:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vincenzo.innocente at cern dot ch X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg00434.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58642 --- Comment #30 from vincenzo Innocente --- 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 --- > 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/