gcc/libgomp/config
Jakub Jelinek 3adcf7e104 openmp: Fix handling of numa_domains(1)
If numa-domains is used with num-places count, sometimes the function
could create more places than requested and crash.  This depended on the
content of /sys/devices/system/node/online file, e.g. if the file
contains
0-1,16-17
and all NUMA nodes contain at least one CPU in the cpuset of the program,
then numa_domains(2) or numa_domains(4) (or 5+) work fine while
numa_domains(1) or numa_domains(3) misbehave.  I.e. the function was able
to stop after reaching limit on the , separators (or trivially at the end),
but not within in the ranges.

2021-10-18  Jakub Jelinek  <jakub@redhat.com>

	* config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
	&& gomp_places_list_len < count after nfirst <= nlast loop condition.
2021-10-18 15:00:46 +02:00
..
accel libgomp: Don't access gomp_sem_t as int using atomics unconditionally 2021-01-18 07:18:46 +01:00
bsd Update copyright years. 2021-01-04 10:26:59 +01:00
darwin Update copyright years. 2021-01-04 10:26:59 +01:00
gcn openmp: Implement omp_get_device_num routine 2021-08-05 23:29:03 +08:00
hpux Update copyright years. 2021-01-04 10:26:59 +01:00
linux openmp: Fix handling of numa_domains(1) 2021-10-18 15:00:46 +02:00
mingw32 Update copyright years. 2021-01-04 10:26:59 +01:00
nvptx Make the OpenMP 'error' directive work for nvptx offloading 2021-08-22 11:08:26 +02:00
posix libgomp: Don't access gomp_sem_t as int using atomics unconditionally 2021-01-18 07:18:46 +01:00
rtems openmp: Fix up strtoul and strtoull uses in libgomp 2021-10-15 16:28:34 +02:00
t-aix aix: remove libgomp and libatomic archives before creating FAT archives 2020-10-11 17:30:24 -04:00