]> git.ipfire.org Git - thirdparty/gcc.git/commit - libgomp/env.c
re PR libgomp/58691 (OpenMP 4: Surprising results with OMP_PLACES=)
authorJakub Jelinek <jakub@redhat.com>
Sat, 12 Oct 2013 07:52:15 +0000 (09:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 12 Oct 2013 07:52:15 +0000 (09:52 +0200)
commitf89163fd487c99f264ebcc9cd07b679b62b87870
tree5760fed5f9e50ee90f8b5a5eeaf2cff3e8f4abcf
parent6e1d5961cea09a63ce6ed2d0ebf443a1eaf39958
re PR libgomp/58691 (OpenMP 4: Surprising results with OMP_PLACES=)

PR libgomp/58691
* config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
to check variable.
(gomp_init_num_threads): Move i variable declaration into
#ifdef CPU_ALLOC_SIZE block.
* config/linux/affinity.c (gomp_affinity_init_level): Test
gomp_places_list_len == 0 rather than gomp_places_list == 0
when checking for topology reading error.
* team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
* env.c (parse_affinity): Add ignore argument, if true, don't populate
gomp_places_list, only parse env var and always return false.
(parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
(initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
and either of these variables were parsed correctly into a places
list.

From-SVN: r203479
libgomp/ChangeLog
libgomp/config/linux/affinity.c
libgomp/config/linux/proc.c
libgomp/env.c
libgomp/team.c