gcc/libgomp/config/linux
Jakub Jelinek c0009a3b98 openmp: Fix up gomp_affinity_init_numa_domains
On Thu, Nov 11, 2021 at 02:14:05PM +0100, Thomas Schwinge wrote:
> There appears to be yet another issue: there still are quite a number of
> 'FAIL: libgomp.c/places-10.c execution test' reports on
> <gcc-testresults@gcc.gnu.org>.  Also in my testing testing, on a system
> where '/sys/devices/system/node/online' contains '0-1', I get a FAIL:
>
>     [...]
>     OPENMP DISPLAY ENVIRONMENT BEGIN
>       _OPENMP = '201511'
>       OMP_DYNAMIC = 'FALSE'
>       OMP_NESTED = 'FALSE'
>       OMP_NUM_THREADS = '8'
>       OMP_SCHEDULE = 'DYNAMIC'
>       OMP_PROC_BIND = 'TRUE'
>       OMP_PLACES = '{0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30},{FAIL: libgomp.c/places-10.c execution test

I've finally managed to debug this (by dumping used /sys/ files from
an affected system in Fedora build system, replacing /sys/ with /tmp/
in gcc sources and populating there those files), I think following patch
ought to fix it.

2022-03-18  Jakub Jelinek  <jakub@redhat.com>

	* config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
	variable next to pl variable.
2022-03-18 11:02:13 +01:00
..
alpha Update copyright years. 2022-01-03 10:42:10 +01:00
ia64 Update copyright years. 2022-01-03 10:42:10 +01:00
mips Update copyright years. 2022-01-03 10:42:10 +01:00
powerpc Update copyright years. 2022-01-03 10:42:10 +01:00
s390 Update copyright years. 2022-01-03 10:42:10 +01:00
sparc Update copyright years. 2022-01-03 10:42:10 +01:00
tile Update copyright years. 2022-01-03 10:42:10 +01:00
x86 Update copyright years. 2022-01-03 10:42:10 +01:00
affinity.c openmp: Fix up gomp_affinity_init_numa_domains 2022-03-18 11:02:13 +01:00
bar.c Update copyright years. 2022-01-03 10:42:10 +01:00
bar.h Update copyright years. 2022-01-03 10:42:10 +01:00
doacross.h Update copyright years. 2022-01-03 10:42:10 +01:00
futex.h Update copyright years. 2022-01-03 10:42:10 +01:00
lock.c Update copyright years. 2022-01-03 10:42:10 +01:00
mutex.c Update copyright years. 2022-01-03 10:42:10 +01:00
mutex.h Update copyright years. 2022-01-03 10:42:10 +01:00
omp-lock.h ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence. 2011-11-30 14:32:53 +10:30
proc.c Update copyright years. 2022-01-03 10:42:10 +01:00
proc.h Update copyright years. 2022-01-03 10:42:10 +01:00
ptrlock.c Update copyright years. 2022-01-03 10:42:10 +01:00
ptrlock.h Update copyright years. 2022-01-03 10:42:10 +01:00
sem.c Update copyright years. 2022-01-03 10:42:10 +01:00
sem.h Update copyright years. 2022-01-03 10:42:10 +01:00
wait.h Update copyright years. 2022-01-03 10:42:10 +01:00